diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2013-06-13 04:13:48 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2013-06-13 04:13:48 +0000 |
commit | 5c5492e87a3686652eb06a60472af5f700073b0a (patch) | |
tree | 54dfc0af42014d4c44de3994ad8cac1c45fef278 /libexec/ld.so/sparc64 | |
parent | 26d8f486c04d87816daa3a1c701fa087912468ba (diff) |
Appease LLVM warning..
error: indirection of non-volatile null pointer will be deleted, not trap [-Werror,-Wnull-dereference]
Suggestion from matthew@
Ok matthew@ miod@
Diffstat (limited to 'libexec/ld.so/sparc64')
-rw-r--r-- | libexec/ld.so/sparc64/rtld_machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/sparc64/rtld_machine.c b/libexec/ld.so/sparc64/rtld_machine.c index 947583dd9d7..7b1f9567667 100644 --- a/libexec/ld.so/sparc64/rtld_machine.c +++ b/libexec/ld.so/sparc64/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.50 2013/06/01 09:57:58 miod Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.51 2013/06/13 04:13:47 brad Exp $ */ /* * Copyright (c) 1999 Dale Rahn @@ -665,7 +665,7 @@ _dl_bind(elf_object_t *object, int index) SYM_SEARCH_ALL|SYM_WARNNOTFOUND|SYM_PLT, sym, object, &sobj); if (this == NULL) { _dl_printf("lazy binding failed!\n"); - *((int *)0) = 0; /* XXX */ + *(volatile int *)0 = 0; /* XXX */ } if (sobj->traced && _dl_trace_plt(sobj, symn)) |