mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-11-01 02:58:12 +08:00 
			
		
		
		
	Add -Wuseless-cast to FTXUI_DEV_WARNINGS (#728)
Add the -Wuseless-cast to the FTXUI_DEV_WARNINGS and fix the compiler complaints about useless casts
This commit is contained in:
		 Stefan Ravn van Overeem
					Stefan Ravn van Overeem
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							1e6df78ec2
						
					
				
				
					commit
					eb9a701fd7
				
			| @@ -77,6 +77,10 @@ function(ftxui_set_options library) | ||||
|       target_compile_options(${library} PRIVATE "-Wpedantic") | ||||
|       target_compile_options(${library} PRIVATE "-Wshadow") | ||||
|       target_compile_options(${library} PRIVATE "-Wunused") | ||||
|        | ||||
|       if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||||
|         target_compile_options(${library} PRIVATE "-Wuseless-cast") | ||||
|       endif() | ||||
|     endif() | ||||
|   endif() | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user