]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/stringio.h
Remove -Wno-extra
[xonotic/netradiant.git] / libs / stringio.h
index ff1a3a67a1300f58ff4b7cefdd7dc01c26b069e2..ac680259d73338fd89bf408f07329ada6c55dbcd 100644 (file)
@@ -219,7 +219,7 @@ inline bool string_parse_size( const char* string, std::size_t& i ){
 }
 
 
-#define RETURN_FALSE_IF_FAIL( expression ) if ( !expression ) {return false; }else
+#define RETURN_FALSE_IF_FAIL(expression) do { if (!(expression)) return false; } while (0)
 
 inline void Tokeniser_unexpectedError( Tokeniser& tokeniser, const char* token, const char* expected ){
        globalErrorStream() << Unsigned( tokeniser.getLine() ) << ":" << Unsigned( tokeniser.getColumn() ) << ": parse error at '" << ( token != 0 ? token : "#EOF" ) << "': expected '" << expected << "'\n";