From e60cea3a548a205598b2ac8501bad58724d5aaee Mon Sep 17 00:00:00 2001 From: MerryMage Date: Mon, 1 Aug 2016 19:54:31 +0100 Subject: [PATCH] Add -pedantic-errors compilation flag --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index edc078f2..34dbcbb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,9 @@ option(DYNARMIC_USE_SYSTEM_BOOST "Use the system boost libraries" ON) # Compiler flags if (NOT MSVC) - add_compile_options(--std=c++14 -Wall -Werror -Wextra -pedantic -Wfatal-errors -Wno-unused-parameter -Wno-missing-braces) + add_compile_options(--std=c++14) + add_compile_options(-Wall -Werror -Wextra -pedantic -pedantic-errors -Wfatal-errors + -Wno-unused-parameter -Wno-missing-braces) add_compile_options(-DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_POOL_NO_MT) if (ARCHITECTURE_x86_64) add_compile_options(-msse4.1)