mirror of
				https://github.com/eclipse/upm.git
				synced 2025-11-04 09:05:34 +03:00 
			
		
		
		
	werror: Don't emit -Wmisleading-indentation warnings
GCC-6 added -Wmisleading-indentation to -Wall. Skip these for now. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
		@@ -89,9 +89,11 @@ function (upm_add_compile_flags compiler)
 | 
			
		||||
endfunction ()
 | 
			
		||||
 | 
			
		||||
# Compiler flags common to both C and CXX
 | 
			
		||||
set (C_CXX_WARNING_FLAGS -Wall)
 | 
			
		||||
# Enable -Wall
 | 
			
		||||
# GCC-6 added -Wmisleading-indentation to -Wall, skip these for now
 | 
			
		||||
set (C_CXX_WARNING_FLAGS -Wall -Wno-misleading-indentation)
 | 
			
		||||
 | 
			
		||||
# Errors as warnings?
 | 
			
		||||
# Warnings as errors?
 | 
			
		||||
if (WERROR)
 | 
			
		||||
  list (APPEND C_CXX_WARNING_FLAGS -Werror)
 | 
			
		||||
  message (STATUS "Warnings as errors enabled (-Werror), disable with -DWERROR=off")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user