浏览代码

GCC diagnostic pragmas seem to use other options as stated in the compiler warning

bel2125 9 年之前
父节点
当前提交
a24aef9065
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/public_server.c

+ 2 - 2
test/public_server.c

@@ -105,7 +105,7 @@ wait_not_null(void *volatile *data)
 
 
 #if defined(__MINGW32__) || defined(__GNUC__)
 #if defined(__MINGW32__) || defined(__GNUC__)
 #pragma GCC diagnostic push
 #pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wunreachable-code-return"
+#pragma GCC diagnostic ignored "-Wunreachable-code"
 #endif
 #endif
 #ifdef __clang__
 #ifdef __clang__
 #pragma clang diagnostic push
 #pragma clang diagnostic push
@@ -654,7 +654,7 @@ websock_server_data(struct mg_connection *conn,
 
 
 #if defined(__MINGW32__) || defined(__GNUC__)
 #if defined(__MINGW32__) || defined(__GNUC__)
 #pragma GCC diagnostic push
 #pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wunreachable-code-return"
+#pragma GCC diagnostic ignored "-Wunreachable-code"
 #endif
 #endif
 #ifdef __clang__
 #ifdef __clang__
 #pragma clang diagnostic push
 #pragma clang diagnostic push