Explorar o código

Fix static_assert replacement for gcc

bel %!s(int64=10) %!d(string=hai) anos
pai
achega
b66d5cdfaf
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/civetweb.c

+ 1 - 3
src/civetweb.c

@@ -66,9 +66,7 @@
 #else
 char static_assert_replacement[1];
 #define mg_static_assert(cond, txt)                                            \
-	{                                                                          \
-		extern char static_assert_replacement[(cond) ? 1 : -1];                \
-	}
+	extern char static_assert_replacement[(cond) ? 1 : -1];
 #endif
 
 mg_static_assert(1, "static assert has to be available");