Author: brunowolff
Date: Wed Mar 19 17:03:25 2008
New Revision: 24833
URL: http://svn.gna.org/viewcvs/wesnoth?rev=24833&view=rev
Log:
Silence gcc 4.3 warning by adding braces to avoid ambiguous else.
Modified:
trunk/src/sound.cpp
Modified: trunk/src/sound.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/sound.cpp?rev=24833&r1=24832&r2=24833&view=diff
==============================================================================
--- trunk/src/sound.cpp (original)
+++ trunk/src/sound.cpp Wed Mar 19 17:03:25 2008
@@ -407,8 +407,9 @@
if (music || sound || bell || UI_sound) {
sound::close_sound();
- if (!sound::init_sound())
+ if (!sound::init_sound()) {
ERR_AUDIO << "Error initializing audio device: " <<
Mix_GetError() << "\n";
+ }
if (!music)
sound::stop_music();
if (!sound)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits