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:
parent
77e7abdf8c
commit
52655843ab
@ -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 "
|
printf("stupidgcm: thread locking is not implemented and should not be "
|
||||||
"needed. Please upgrade openssl.\n");
|
"needed. Please upgrade openssl.\n");
|
||||||
// panic
|
// panic
|
||||||
*((int*)0)=0;
|
__builtin_trap();
|
||||||
}
|
}
|
||||||
static void set_dummy_callback() {
|
static void set_dummy_callback() {
|
||||||
CRYPTO_set_locking_callback(dummy_callback);
|
CRYPTO_set_locking_callback(dummy_callback);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user