浏览代码

Merge pull request #115 from softwarenerd/softwarenerd

Fix compiler warning on OS X compile.
bel2125 10 年之前
父节点
当前提交
971d458c97
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -1176,7 +1176,7 @@ static int mg_vsnprintf(struct mg_connection *conn, char *buf, size_t buflen,
 
     #ifdef __clang__
     #pragma clang diagnostic push
-    #pragma clang diagnostic ignored "Wformat-nonliteral"
+    #pragma clang diagnostic ignored "-Wformat-nonliteral"
     /* Using fmt as a non-literal is intended here, since it is mostly called indirectly by mg_snprintf */
     #endif