diff --git a/CMakeLists.txt b/CMakeLists.txt index f574dde5..d0e3cae9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,8 +112,13 @@ if (WARNINGS_AS_ERRORS) endif() add_library(libquic_internal-warnings INTERFACE) -if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11.0.0) - target_compile_options(libquic_internal-warnings INTERFACE -fconcepts) +# gcc 11 and earlier bug +if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.0.0) + if (libquic_IS_TOPLEVEL_PROJECT) + list(APPEND warning_flags -Wno-error=stringop-overflow) + else() + target_compile_options(libquic_external INTERFACE -Wno-error=stringop-overflow) + endif() endif() target_compile_options(libquic_internal-warnings INTERFACE "$<$,$>:${warning_flags}>") diff --git a/external/oxen-encoding b/external/oxen-encoding index 0b40c14e..201c4ca8 160000 --- a/external/oxen-encoding +++ b/external/oxen-encoding @@ -1 +1 @@ -Subproject commit 0b40c14e6c8a7e3f79ab14d6fa3486d8c071a41b +Subproject commit 201c4ca86add82eaedf424c5f7c8fb756aa4fc17