changeset 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 d144a6bece53
children eef377591301
files libtomcrypt/src/misc/crypt/crypt_argchk.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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