diff libtomcrypt/src/misc/crypt/crypt_argchk.c @ 1090:93e1a0eb40ef

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 1809f741cba865b03d4db5c4ba8c41364a55d6bc.
author Gaël PORTAY <gael.portay@gmail.com>
date Sat, 02 May 2015 11:26:22 +0200
parents 0cbe8f6dbf9e
children f849a5ca2efc
line wrap: on
line diff
--- a/libtomcrypt/src/misc/crypt/crypt_argchk.c	Sat May 02 11:37:37 2015 +0200
+++ b/libtomcrypt/src/misc/crypt/crypt_argchk.c	Sat May 02 11:26:22 2015 +0200
@@ -21,7 +21,7 @@
 {
  fprintf(stderr, "LTC_ARGCHK '%s' failure on line %d of file %s\n",
          v, d, s);
- (void)raise(SIGABRT);
+ abort();
 }
 #endif