From 0dceec8c20e04e56769f17ea87f6cd4e98e3098b Mon Sep 17 00:00:00 2001 From: Misa Date: Wed, 14 Apr 2021 21:59:01 -0700 Subject: [PATCH] Add -Wpedantic to GCC/Clang in CMakeLists This adds -Wpedantic so we get warned if our code doesn't strictly conform to ISO C++98. It doesn't seem like MSVC has it. --- desktop_version/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/CMakeLists.txt b/desktop_version/CMakeLists.txt index b07babb1..07563ccf 100644 --- a/desktop_version/CMakeLists.txt +++ b/desktop_version/CMakeLists.txt @@ -207,7 +207,7 @@ IF(ENABLE_WARNINGS) # Saves quite a few lines and boilerplate at the price of readability. TARGET_COMPILE_OPTIONS(VVVVVV PRIVATE $<$,$,$>: - -Wall $<$:-Werror>> + -Wall -Wpedantic $<$:-Werror>> $<$: /W4 $<$:/WX>>) ENDIF()