Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Sorted and removed duplicates from the compiler warning list

The duplicates were '-Wreturn-std-move' and '-Wunreachable-code'.
Commit
4c1cf4aa67709693e932587d45e598bcb57cb1bb
Author
Martin Hořeňovský ·
Parents
745cc82cd3bf

Files · Download .tar.gz

Changes

 CMake/CatchMiscFunctions.cmake | 40 +++++++++++++++++++---------------------
 1 file changed, 19 insertions(+), 21 deletions(-)

diff --git a/CMake/CatchMiscFunctions.cmake b/CMake/CatchMiscFunctions.cmake
index fc3f0cb4..2bfbbe83 100644
--- a/CMake/CatchMiscFunctions.cmake
+++ b/CMake/CatchMiscFunctions.cmake
@@ -43,35 +43,33 @@ function(add_warnings_to_targets targets)
 
     if (NOT MSVC)
         set(CHECKED_WARNING_FLAGS
+          "-Wabsolute-value"
           "-Wall"
-          "-Wextra"
-          "-Wpedantic"
-          "-Wweak-vtables"
-          "-Wunreachable-code"
-          "-Wmissing-declarations"
+          "-Wcall-to-pure-virtual-from-ctor-dtor"
+          "-Wcatch-value"
+          "-Wdeprecated"
+          "-Wdeprecated-register"
           "-Wexit-time-destructors"
+          "-Wextra"
+          "-Wextra-semi"
           "-Wglobal-constructors"
+          "-Wmisleading-indentation"
+          "-Wmissing-braces"
+          "-Wmissing-declarations"
           "-Wmissing-noreturn"
+          "-Wold-style-cast"
           "-Wparentheses"
-          "-Wextra-semi"
-          "-Wunreachable-code"
-          "-Wstrict-aliasing"
+          "-Wpedantic"
           "-Wreturn-std-move"
-          "-Wmissing-braces"
-          "-Wdeprecated"
-          "-Wvla"
+          "-Wshadow"
+          "-Wstrict-aliasing"
+          "-Wsuggest-override"
           "-Wundef"
-          "-Wmisleading-indentation"
-          "-Wcatch-value"
-          "-Wabsolute-value"
-          "-Wreturn-std-move"
-          "-Wunused-parameter"
+          "-Wunreachable-code"
           "-Wunused-function"
-          "-Wcall-to-pure-virtual-from-ctor-dtor"
-          "-Wdeprecated-register"
-          "-Wsuggest-override"
-          "-Wshadow"
-          "-Wold-style-cast"
+          "-Wunused-parameter"
+          "-Wvla"
+          "-Wweak-vtables"
         )
         foreach(warning ${CHECKED_WARNING_FLAGS})
             add_cxx_flag_if_supported_to_targets(${warning} "${targets}")