aboutsummaryrefslogtreecommitdiff
path: root/libbb/appletlib.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2019-10-25 12:12:22 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2019-10-25 12:12:22 +0200
commitaf7169b4a70eb3f60555ced17a40780f70aaaa5c (patch)
tree1633c3306b7d538fb44b12d27ec299e8db0f35fa /libbb/appletlib.c
parente1a7c97ac640701973eea000007fc8b9f9dd7126 (diff)
downloadbusybox-af7169b4a70eb3f60555ced17a40780f70aaaa5c.tar.gz
clang/llvm 9 fix - do not eliminate a store to a fake "const"
This is *much* better (9 kbytes better) than dropping "*const" optimization trick. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r--libbb/appletlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index 9fa17cfa1..f842e73cc 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -304,7 +304,7 @@ void lbb_prepare(const char *applet
IF_FEATURE_INDIVIDUAL(, char **argv))
{
#ifdef __GLIBC__
- (*(int **)&bb_errno) = __errno_location();
+ (*(int **)not_const_pp(&bb_errno)) = __errno_location();
barrier();
#endif
applet_name = applet;