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/i386/rtld_machine.c | |
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/i386/rtld_machine.c')
-rw-r--r-- | libexec/ld.so/i386/rtld_machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/i386/rtld_machine.c b/libexec/ld.so/i386/rtld_machine.c index 6e3960c8582..8e309795a23 100644 --- a/libexec/ld.so/i386/rtld_machine.c +++ b/libexec/ld.so/i386/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.28 2013/06/01 09:57:58 miod Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.29 2013/06/13 04:13:47 brad Exp $ */ /* * Copyright (c) 2002 Dale Rahn @@ -384,7 +384,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)) |