mirror of
				https://github.com/clearml/dropbear
				synced 2025-06-26 18:17:32 +00:00 
			
		
		
		
	Uses abort() instead of raising a SIGABRT signal [-Werror]
error: ‘noreturn’ function does return [-Werror]
abort() is a noreturn function while raise() is not.
And because crypt_argchk() is flagged as __attribute__(noreturn), abort()
appears to be a better condidate.
This compilation warning has probably been introduced by commit
1809f741cb.
			
			
This commit is contained in:
		
							parent
							
								
									897da4ee36
								
							
						
					
					
						commit
						d9d97969a3
					
				| @ -21,7 +21,7 @@ void crypt_argchk(char *v, char *s, int d) | ||||
| { | ||||
|  fprintf(stderr, "LTC_ARGCHK '%s' failure on line %d of file %s\n", | ||||
|          v, d, s); | ||||
|  (void)raise(SIGABRT); | ||||
|  abort(); | ||||
| } | ||||
| #endif | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user