summaryrefslogtreecommitdiffhomepage
path: root/libtomcrypt/src
diff options
context:
space:
mode:
authorGaël PORTAY <gael.portay@gmail.com>2015-05-02 11:26:22 +0200
committerGaël PORTAY <gael.portay@gmail.com>2015-05-05 20:30:49 +0200
commitd9d97969a35e437a8af7a1793b484783360ceca7 (patch)
tree43ef794f38f426d5e74009dddff08f76d1ff8f28 /libtomcrypt/src
parent897da4ee36a47f4b1757590d92b5747a0267cf01 (diff)
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.
Diffstat (limited to 'libtomcrypt/src')
-rw-r--r--libtomcrypt/src/misc/crypt/crypt_argchk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtomcrypt/src/misc/crypt/crypt_argchk.c b/libtomcrypt/src/misc/crypt/crypt_argchk.c
index c6675ef..a6d2a48 100644
--- a/libtomcrypt/src/misc/crypt/crypt_argchk.c
+++ b/libtomcrypt/src/misc/crypt/crypt_argchk.c
@@ -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