浏览代码

mg_current_thread_id may be unused

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

+ 1 - 1
src/civetweb.c

@@ -1079,7 +1079,7 @@ struct mg_workerTLS {
 };
 
 
-#if defined(__GNUC__)
+#if defined(__GNUC__) || defined(__MINGW32__)
 /* Show no warning in case system functions are not used. */
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wunused-function"