Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84185 - trunk/libs/thread/example
From: vicente.botet_at_[hidden]
Date: 2013-05-07 18:18:15


Author: viboes
Date: 2013-05-07 18:18:15 EDT (Tue, 07 May 2013)
New Revision: 84185
URL: http://svn.boost.org/trac/boost/changeset/84185

Log:
Thread: fix warning
Text files modified:
   trunk/libs/thread/example/tennis.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/thread/example/tennis.cpp
==============================================================================
--- trunk/libs/thread/example/tennis.cpp (original)
+++ trunk/libs/thread/example/tennis.cpp 2013-05-07 18:18:15 EDT (Tue, 07 May 2013)
@@ -29,7 +29,7 @@
 boost::mutex mutex;
 boost::condition cond;
 
-char* player_name(int state)
+const char* player_name(int state)
 {
     if (state == PLAYER_A)
         return "PLAYER-A";
@@ -95,7 +95,7 @@
     void* _param;
 };
 
-int main(int argc, char* argv[])
+int main()
 {
     state = START;
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk