diff options
| author | Jakob Unterwurzacher | 2016-07-04 08:14:24 +0200 | 
|---|---|---|
| committer | Jakob Unterwurzacher | 2016-07-04 08:14:24 +0200 | 
| commit | 52655843ab68a37f0000b009cf90cf370df32f98 (patch) | |
| tree | ed69a1fd1abb5da171200f840bc04f6af54d95a0 | |
| parent | 77e7abdf8c1f9e2da3be4edfd0edb0d6ce9cdc67 (diff) | |
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
| -rw-r--r-- | internal/stupidgcm/locking.go | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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); | 
