mirror of
				https://github.com/Xahau/xahaud.git
				synced 2025-11-04 10:45:50 +00:00 
			
		
		
		
	Disable shadow warning:
Different compilers and handling the shadow warning differently. In particular, some are warning about types being shadowed by variables. Until these can be resolved the shadow warning is being disabled. Note: the shadow warning was originally enabled to help with the structured bindings patch. As that is now complete, it's less important to keep this warning.
This commit is contained in:
		@@ -547,12 +547,6 @@ if (MSVC)
 | 
			
		||||
else ()
 | 
			
		||||
  # HACK : because these need to come first, before any warning demotion
 | 
			
		||||
  string (APPEND CMAKE_CXX_FLAGS " -Wall -Wdeprecated")
 | 
			
		||||
  if (is_clang OR (is_gcc AND NOT unity))
 | 
			
		||||
    # gcc flags many more instances with `-Wshadow` than clang. Many incouous
 | 
			
		||||
    # shadowings are flagged in unity mode. Only turn on gcc warnings in nonunity
 | 
			
		||||
    # builds
 | 
			
		||||
    string (APPEND CMAKE_CXX_FLAGS " -Wshadow")
 | 
			
		||||
  endif()
 | 
			
		||||
  # not MSVC
 | 
			
		||||
  target_compile_options (common
 | 
			
		||||
    INTERFACE
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user