projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang/llvm 9 fix - do not eliminate a store to a fake "const"
[oweals/busybox.git]
/
libbb
/
lineedit.c
diff --git
a/libbb/lineedit.c
b/libbb/lineedit.c
index fbabc6c1204813bd6ef9b1d8ad02bce856047578..b1ec52b88c19034acac96b297246320689733c11 100644
(file)
--- a/
libbb/lineedit.c
+++ b/
libbb/lineedit.c
@@
-203,7
+203,7
@@
extern struct lineedit_statics *const lineedit_ptr_to_statics;
#define delbuf (S.delbuf )
#define INIT_S() do { \
#define delbuf (S.delbuf )
#define INIT_S() do { \
- (*(struct lineedit_statics**)
&lineedit_ptr_to_statics
) = xzalloc(sizeof(S)); \
+ (*(struct lineedit_statics**)
not_const_pp(&lineedit_ptr_to_statics)
) = xzalloc(sizeof(S)); \
barrier(); \
cmdedit_termw = 80; \
IF_USERNAME_OR_HOMEDIR(home_pwd_buf = (char*)null_str;) \
barrier(); \
cmdedit_termw = 80; \
IF_USERNAME_OR_HOMEDIR(home_pwd_buf = (char*)null_str;) \