Remove unrecognised -Wno-braced-scalar-init, add -Wno-error=address-of-packed-member until a proper fix is written
Andrej Shadura
4 years ago
0 | Remove unrecognised -Wno-braced-scalar-init, add -Wno-error=address-of-packed-member until a proper fix is written | |
1 | ||
2 | --- a/CMakeLists.txt | |
3 | +++ b/CMakeLists.txt | |
4 | @@ -30,7 +30,7 @@ | |
5 | endif () | |
6 | ||
7 | # build application ============================================================ | |
8 | -set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pedantic -Wall -Werror -Wextra -Wno-invalid-offsetof -Wno-braced-scalar-init -fPIC -fvisibility=hidden") | |
9 | +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pedantic -Wall -Werror -Wextra -Wno-invalid-offsetof -Wno-error=address-of-packed-member -fPIC -fvisibility=hidden") | |
10 | set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--export-dynamic") | |
11 | ||
12 | if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND "${INCLUDE_COVERAGE_INFO}") |