mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Reduce number of warnings coming from third-party modules we use shown during compilation
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -154,6 +154,11 @@ set(EXTRAWARN "${EXTRAWARN_GCC6} \
|
||||
${EXTRAWARN_GCC8} \
|
||||
${EXTRAWARN_GCC12} \
|
||||
${EXTRAWARN_GCC13}")
|
||||
|
||||
# Remove extra spaces from EXTRAWARN
|
||||
string(REGEX REPLACE " +" " " EXTRAWARN "${EXTRAWARN}")
|
||||
|
||||
# Separate EXTRAWARN into a list of arguments
|
||||
separate_arguments(EXTRAWARN)
|
||||
|
||||
# -Wxor-used-as-pow
|
||||
|
||||
@@ -65,7 +65,7 @@ set(sources
|
||||
)
|
||||
|
||||
add_library(lua OBJECT ${sources})
|
||||
target_compile_options(lua PRIVATE -Wno-maybe-uninitialized)
|
||||
target_compile_options(lua PRIVATE -Wno-maybe-uninitialized -Wno-unused-variable -Wno-unused-value)
|
||||
|
||||
# LUA_USE_POSIX: ensures recommended POSIX functions are used instead of
|
||||
# (partially obsoleted) standard C functions
|
||||
|
||||
@@ -27,4 +27,4 @@ set(sources
|
||||
)
|
||||
|
||||
add_library(tre-regex OBJECT ${sources})
|
||||
target_compile_options(tre-regex PRIVATE -Wno-maybe-uninitialized -Wno-unused-value)
|
||||
target_compile_options(tre-regex PRIVATE -Wno-maybe-uninitialized -Wno-unused-value -Wno-empty-body)
|
||||
|
||||
@@ -18,6 +18,7 @@ set(sources
|
||||
)
|
||||
|
||||
add_library(civetweb OBJECT ${sources})
|
||||
target_compile_options(civetweb PRIVATE -Wno-unused-but-set-variable -Wno-unused-variable)
|
||||
# We can remove the NO_SSL later on. It adds additional constraints to the build system (availablity of libSSL-dev)
|
||||
# NO_CGI = no CGI support (we don't need it)
|
||||
# NO_SSL_DL NO_SSL = no SSL support (for now)
|
||||
@@ -42,6 +43,5 @@ else()
|
||||
target_compile_definitions(civetweb PRIVATE NO_SSL)
|
||||
endif()
|
||||
|
||||
|
||||
include_directories(${PROJECT_SOURCE_DIR}/src/lua /usr/local/include)
|
||||
target_include_directories(civetweb PRIVATE ${PROJECT_SOURCE_DIR}/src)
|
||||
|
||||
@@ -2793,7 +2793,11 @@ lua_error_handler(lua_State *L)
|
||||
static void
|
||||
prepare_lua_environment(struct mg_context *ctx,
|
||||
struct mg_connection *conn,
|
||||
#if defined(USE_WEBSOCKET)
|
||||
struct lua_websock_data *ws_conn_list,
|
||||
#else
|
||||
void *ws_conn_list,
|
||||
#endif
|
||||
lua_State *L,
|
||||
const char *script_name,
|
||||
int lua_env_type)
|
||||
|
||||
@@ -3182,7 +3182,7 @@ static int mz_stat64(const char *path, struct __stat64 *buffer)
|
||||
#define MZ_DELETE_FILE remove
|
||||
|
||||
#else
|
||||
#pragma message("Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.")
|
||||
//#pragma message("Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.")
|
||||
#ifndef MINIZ_NO_TIME
|
||||
#include <utime.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user