diff --git a/CMakeLists.txt b/CMakeLists.txt index 765d20d..f823141 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,7 +19,6 @@ if (CMAKE_BUILD_TYPE MATCHES "Debug") endif() # https://t.me/NightShadowsHangout/670691 -# # https://t.me/NightShadowsHangout/688372 list(APPEND FLAGS -Werror -Wall -Wextra -Wshadow -Wpedantic -Wno-gnu-anonymous-struct -fPIC -fno-rtti -Wconversion -Wno-unused-parameter -Wimplicit-fallthrough) # i have no idea why this hack wasn't needed before but it's needed if sanitizers are used diff --git a/hiredis_wrapper.h b/hiredis_wrapper.h index 093c37e..24a0fe1 100644 --- a/hiredis_wrapper.h +++ b/hiredis_wrapper.h @@ -6,8 +6,10 @@ #include #pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" #pragma GCC diagnostic ignored "-Wc99-extensions" #pragma GCC diagnostic ignored "-Wconversion" +#pragma GCC diagnostic ignored "-Wpedantic" #include #pragma GCC diagnostic pop diff --git a/pixivclient.cpp b/pixivclient.cpp index 5b7583e..f14172d 100644 --- a/pixivclient.cpp +++ b/pixivclient.cpp @@ -147,7 +147,7 @@ bool PixivClient::i_pximg_url_valid(const std::string& path) { static void to_lower(std::string& str) { for (size_t i = 0; i < str.size(); i++) { if (str[i] >= 'A' && str[i] <= 'Z') { - str[i] = str[i] - 'A' + 'a'; + str[i] = static_cast(str[i] - 'A' + 'a'); } } }