mail[Wesnoth-commits] r24833 - /trunk/src/sound.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 - 17:06:
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)




Related Messages


Powered by MHonArc, Updated Wed Mar 19 17:21:39 2008