浏览代码

GCC: Functions marked as 'unused' MAY be unused - dont raise an error if they are used

bel2125 8 年之前
父节点
当前提交
066dbf7e60
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/civetweb.c

+ 1 - 0
src/civetweb.c

@@ -121,6 +121,7 @@ mg_static_assert(sizeof(void *) >= sizeof(int), "data type size check");
 
 #if defined(__GNUC__) || defined(__MINGW32__)
 #define FUNCTION_MAY_BE_UNUSED __attribute__((unused))
+#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
 #else
 #define FUNCTION_MAY_BE_UNUSED
 #endif