stupidgcm: use __builtin_trap()

[...]/stupidgcm/locking.go:16:2:
  warning: indirection of non-volatile null pointer will
  be deleted, not trap [-Wnull-dereference]
  [...]/stupidgcm/locking.go:16:2:
  note: consider using __builtin_trap() or qualifying
  pointer with 'volatile'

https://github.com/rfjakob/gocryptfs/issues/15
This commit is contained in:
Jakob Unterwurzacher 2016-07-04 08:14:24 +02:00
parent 77e7abdf8c
commit 52655843ab
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ static void dummy_callback(int mode, int n, const char *file, int line) {
printf("stupidgcm: thread locking is not implemented and should not be "
"needed. Please upgrade openssl.\n");
// panic
*((int*)0)=0;
__builtin_trap();
}
static void set_dummy_callback() {
CRYPTO_set_locking_callback(dummy_callback);