summaryrefslogtreecommitdiff
path: root/libexec/ld.so/mips64
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-06-13 04:13:48 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-06-13 04:13:48 +0000
commit5c5492e87a3686652eb06a60472af5f700073b0a (patch)
tree54dfc0af42014d4c44de3994ad8cac1c45fef278 /libexec/ld.so/mips64
parent26d8f486c04d87816daa3a1c701fa087912468ba (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/mips64')
-rw-r--r--libexec/ld.so/mips64/rtld_machine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/mips64/rtld_machine.c b/libexec/ld.so/mips64/rtld_machine.c
index 259353fb5b1..07801487688 100644
--- a/libexec/ld.so/mips64/rtld_machine.c
+++ b/libexec/ld.so/mips64/rtld_machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtld_machine.c,v 1.16 2013/06/01 09:57:58 miod Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.17 2013/06/13 04:13:47 brad Exp $ */
/*
* Copyright (c) 1998-2004 Opsycon AB, Sweden.
@@ -308,7 +308,7 @@ _dl_bind(elf_object_t *object, int symidx)
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))