Explorar o código

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

bel2125 %!s(int64=8) %!d(string=hai) anos
pai
achega
066dbf7e60
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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