mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	Add -Wmissing-declarations to the SelfTest project
This required some clean-up in our test files
This commit is contained in:
		@@ -268,7 +268,7 @@ endif()
 | 
			
		||||
 | 
			
		||||
# Add per compiler options
 | 
			
		||||
if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang|GNU" )
 | 
			
		||||
    target_compile_options( SelfTest PRIVATE -Wall -Wextra -Wunreachable-code -Wpedantic)
 | 
			
		||||
    target_compile_options( SelfTest PRIVATE -Wall -Wextra -Wunreachable-code -Wpedantic -Wmissing-declarations )
 | 
			
		||||
    if (CATCH_ENABLE_WERROR)
 | 
			
		||||
        target_compile_options( SelfTest PRIVATE -Werror)
 | 
			
		||||
    endif()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user