From 9fb76d1aa4066a5ccb410ca423dd9694c5a077eb Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sat, 14 May 2022 13:29:47 +0200 Subject: [PATCH] cmake: sort warning flags --- CMakeLists.txt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d6c0809d5..ef4438296 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,10 +63,18 @@ if(MSVC) add_compile_options("/W3") else() add_compile_options( - -Wall -Wextra -Wmissing-declarations -Wmissing-prototypes - -Wstrict-prototypes -Wbad-function-cast -Wnested-externs - -Wshadow -Waggregate-return -Wcast-align -Wold-style-definition - -Wdeclaration-after-statement -Wvla + -Wall + -Wbad-function-cast + -Wcast-align + -Wdeclaration-after-statement + -Wextra + -Wmissing-declarations + -Wmissing-prototypes + -Wnested-externs + -Wold-style-definition + -Wshadow -Waggregate-return + -Wstrict-prototypes + -Wvla ) endif()