moved warning avoidance over to c files

This commit is contained in:
AdenKoperczak 2024-09-19 14:37:35 -04:00
parent 2cd0a16028
commit 797f26e461
6 changed files with 41 additions and 3 deletions

View file

@ -10,8 +10,18 @@
#include <sstream>
#include <boost/algorithm/string.hpp>
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wunused-parameter"
#endif
#include <boost/gil.hpp>
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
#include <hsluv.h>
namespace scwx

View file

@ -260,7 +260,7 @@ target_include_directories(wxdata INTERFACE ${scwx-data_SOURCE_DIR}/include)
target_compile_options(wxdata PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/W4 /WX>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror -Wno-error=unused-parameter>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror>
)
if (MSVC)