Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140603492
D54362.id168586.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
684 B
Referenced Files
None
Subscribers
None
D54362.id168586.diff
View Options
diff --git a/bin/sh/options.h b/bin/sh/options.h
--- a/bin/sh/options.h
+++ b/bin/sh/options.h
@@ -74,7 +74,7 @@
extern const char optletter[NSHORTOPTS];
#ifdef DEFINE_OPTIONS
char optval[NOPTS];
-const char optletter[NSHORTOPTS] = "efIimnsxvVECabupTPh";
+const char optletter[NSHORTOPTS] __nonstring = "efIimnsxvVECabupTPh";
static const unsigned char optname[] =
"\007errexit"
"\006noglob"
diff --git a/bin/test/test.c b/bin/test/test.c
--- a/bin/test/test.c
+++ b/bin/test/test.c
@@ -116,7 +116,7 @@
#define TOKEN_TYPE(token) ((token) & 0xff00)
static const struct t_op {
- char op_text[2];
+ char op_text[2] __nonstring;
short op_num;
} ops1[] = {
{"=", STREQ},
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 26, 8:27 PM (7 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27289345
Default Alt Text
D54362.id168586.diff (684 B)
Attached To
Mode
D54362: sh: avoid warnings about too-long initializer strings
Attached
Detach File
Event Timeline
Log In to Comment