Explorar el Código

web_service: Silence -Wmaybe-uninitialized on httplib.h

ReinUsesLisp hace 5 años
padre
commit
4503a4ac43
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      src/web_service/web_backend.cpp

+ 10 - 0
src/web_service/web_backend.cpp

@@ -8,7 +8,17 @@
 #include <string>
 
 #include <fmt/format.h>
+
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#ifndef __clang__
+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+#endif
+#endif
 #include <httplib.h>
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 
 #include "common/logging/log.h"
 #include "web_service/web_backend.h"