summaryrefslogtreecommitdiff
path: root/libexec/ld.so/alpha
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/alpha
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/alpha')
-rw-r--r--libexec/ld.so/alpha/rtld_machine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/alpha/rtld_machine.c b/libexec/ld.so/alpha/rtld_machine.c
index 5fa6273707d..14788eec751 100644
--- a/libexec/ld.so/alpha/rtld_machine.c
+++ b/libexec/ld.so/alpha/rtld_machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtld_machine.c,v 1.49 2013/06/01 09:57:57 miod Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.50 2013/06/13 04:13:47 brad Exp $ */
/*
* Copyright (c) 1999 Dale Rahn
@@ -233,7 +233,7 @@ _dl_bind(elf_object_t *object, int reloff)
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))