Tell the compiler to be more pedantic for debug builds.

This commit is contained in:
tastytea 2018-12-04 09:49:57 +01:00
父節點 1f5e356b2a
當前提交 cfb21e3e2b
簽署人: tastytea
GPG 金鑰 ID: CFC39497F1B26E07
共有 1 個檔案被更改,包括 2 行新增1 行删除

查看文件

@ -16,7 +16,8 @@ set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -g -Og")
set(CMAKE_CXX_FLAGS_DEBUG
"${CMAKE_CXX_FLAGS_DEBUG} -Wall -pedantic -Wextra -g -Og")
# Do not complain about compatibility-wrapper
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")