mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Sorted and removed duplicates from the compiler warning list
The duplicates were '-Wreturn-std-move' and '-Wunreachable-code'.
This commit is contained in:
		@@ -43,35 +43,33 @@ function(add_warnings_to_targets targets)
 | 
			
		||||
 | 
			
		||||
    if (NOT MSVC)
 | 
			
		||||
        set(CHECKED_WARNING_FLAGS
 | 
			
		||||
          "-Wall"
 | 
			
		||||
          "-Wextra"
 | 
			
		||||
          "-Wpedantic"
 | 
			
		||||
          "-Wweak-vtables"
 | 
			
		||||
          "-Wunreachable-code"
 | 
			
		||||
          "-Wmissing-declarations"
 | 
			
		||||
          "-Wexit-time-destructors"
 | 
			
		||||
          "-Wglobal-constructors"
 | 
			
		||||
          "-Wmissing-noreturn"
 | 
			
		||||
          "-Wparentheses"
 | 
			
		||||
          "-Wextra-semi"
 | 
			
		||||
          "-Wunreachable-code"
 | 
			
		||||
          "-Wstrict-aliasing"
 | 
			
		||||
          "-Wreturn-std-move"
 | 
			
		||||
          "-Wmissing-braces"
 | 
			
		||||
          "-Wdeprecated"
 | 
			
		||||
          "-Wvla"
 | 
			
		||||
          "-Wundef"
 | 
			
		||||
          "-Wmisleading-indentation"
 | 
			
		||||
          "-Wcatch-value"
 | 
			
		||||
          "-Wabsolute-value"
 | 
			
		||||
          "-Wreturn-std-move"
 | 
			
		||||
          "-Wunused-parameter"
 | 
			
		||||
          "-Wunused-function"
 | 
			
		||||
          "-Wall"
 | 
			
		||||
          "-Wcall-to-pure-virtual-from-ctor-dtor"
 | 
			
		||||
          "-Wcatch-value"
 | 
			
		||||
          "-Wdeprecated"
 | 
			
		||||
          "-Wdeprecated-register"
 | 
			
		||||
          "-Wsuggest-override"
 | 
			
		||||
          "-Wshadow"
 | 
			
		||||
          "-Wexit-time-destructors"
 | 
			
		||||
          "-Wextra"
 | 
			
		||||
          "-Wextra-semi"
 | 
			
		||||
          "-Wglobal-constructors"
 | 
			
		||||
          "-Wmisleading-indentation"
 | 
			
		||||
          "-Wmissing-braces"
 | 
			
		||||
          "-Wmissing-declarations"
 | 
			
		||||
          "-Wmissing-noreturn"
 | 
			
		||||
          "-Wold-style-cast"
 | 
			
		||||
          "-Wparentheses"
 | 
			
		||||
          "-Wpedantic"
 | 
			
		||||
          "-Wreturn-std-move"
 | 
			
		||||
          "-Wshadow"
 | 
			
		||||
          "-Wstrict-aliasing"
 | 
			
		||||
          "-Wsuggest-override"
 | 
			
		||||
          "-Wundef"
 | 
			
		||||
          "-Wunreachable-code"
 | 
			
		||||
          "-Wunused-function"
 | 
			
		||||
          "-Wunused-parameter"
 | 
			
		||||
          "-Wvla"
 | 
			
		||||
          "-Wweak-vtables"
 | 
			
		||||
        )
 | 
			
		||||
        foreach(warning ${CHECKED_WARNING_FLAGS})
 | 
			
		||||
            add_cxx_flag_if_supported_to_targets(${warning} "${targets}")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user