From 52655843ab68a37f0000b009cf90cf370df32f98 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 4 Jul 2016 08:14:24 +0200 Subject: 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 --- internal/stupidgcm/locking.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/stupidgcm') diff --git a/internal/stupidgcm/locking.go b/internal/stupidgcm/locking.go index 06add56..88f0900 100644 --- a/internal/stupidgcm/locking.go +++ b/internal/stupidgcm/locking.go @@ -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); -- cgit v1.2.3