mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	windows.c: prevent an unused warning
When building with WIN32_CONSOLE_APP (or CONFIG += console) we need to fake-use console_desc or a warning will pop out. __attribute__((unused)) is available, but is GCC only. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									59912568d0
								
							
						
					
					
						commit
						e372e819e7
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -210,6 +210,7 @@ static struct { | |||
| 
 | ||||
| void subsurface_console_init(bool dedicated) | ||||
| { | ||||
| 	(void)console_desc; | ||||
| 	/* if this is a console app already, do nothing */ | ||||
| #ifndef WIN32_CONSOLE_APP | ||||
| 	/* just in case of multiple calls */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue