openrc-shutdown: mark handler as noreturn, use _unused macro
This commit is contained in:
		
				
					committed by
					
						 Mike Frysinger
						Mike Frysinger
					
				
			
			
				
	
			
			
			
						parent
						
							bcae7d03b4
						
					
				
				
					commit
					a28bdc7e5c
				
			| @@ -44,11 +44,7 @@ static sigjmp_buf jbuf; | ||||
|  *	Alarm handler | ||||
|  */ | ||||
| /*ARGSUSED*/ | ||||
| # ifdef __GNUC__ | ||||
| static void handler(int arg __attribute__((unused))) | ||||
| # else | ||||
| static void handler(int arg) | ||||
| # endif | ||||
| _noreturn static void handler(int arg _unused) | ||||
| { | ||||
| 	siglongjmp(jbuf, 1); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user