Ver código fonte

LibC: Unbreak assert.h when compiled with a C compiler :^)

Andreas Kling 4 anos atrás
pai
commit
79818bbf8e
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      Libraries/LibC/assert.h

+ 1 - 1
Libraries/LibC/assert.h

@@ -41,7 +41,7 @@ __attribute__((noreturn)) void __assertion_failed(const char* msg);
         } while (0)
         } while (0)
 #    define ASSERT_NOT_REACHED() assert(false)
 #    define ASSERT_NOT_REACHED() assert(false)
 #else
 #else
-#    define assert(expr) (void(0))
+#    define assert(expr) ((void)(0))
 #    define ASSERT_NOT_REACHED() CRASH()
 #    define ASSERT_NOT_REACHED() CRASH()
 #endif
 #endif