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_);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits