소스 검색

Fix compiler warning on OS X compile. clang diagnostic ignored needed -W to work properly on OS X.

Brian Lambert 10 년 전
부모
커밋
a8c4f4a6a3
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