mail[Wesnoth-commits] r24866 - /trunk/src/play_controller.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by bruno on March 19, 2008 - 18:42:
Author: brunowolff
Date: Wed Mar 19 18:42:16 2008
New Revision: 24866

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24866&view=rev
Log:
Silence gcc 4.3 warning about empty body for while loop by adding braces.

Modified:
    trunk/src/play_controller.cpp

Modified: trunk/src/play_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/play_controller.cpp?rev=24866&r1=24865&r2=24866&view=diff
==============================================================================
--- trunk/src/play_controller.cpp (original)
+++ trunk/src/play_controller.cpp Wed Mar 19 18:42:16 2008
@@ -693,7 +693,7 @@
                if(SDL_PeepEvents(&new_event,1,SDL_GETEVENT,
                                        SDL_EVENTMASK(SDL_MOUSEMOTION)) > 0) {
                        while(SDL_PeepEvents(&new_event,1,SDL_GETEVENT,
-                                               
SDL_EVENTMASK(SDL_MOUSEMOTION)) > 0);
+                                               
SDL_EVENTMASK(SDL_MOUSEMOTION)) > 0) {};
                        mouse_handler_.mouse_motion(new_event.motion, 
browse_);
                } else {
                        mouse_handler_.mouse_motion(event.motion, browse_);




Related Messages


Powered by MHonArc, Updated Wed Mar 19 19:02:19 2008