mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
The 'flags' variable is conflicting with some inline code in a header file
("variable flags shadows a global..."), just rename this variable to wish away the problem.
This commit is contained in:
parent
a6fc334653
commit
3ed6efc4ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269112
@ -77,7 +77,7 @@ extern uint32_t _end;
|
||||
#define OPT_CHECK(opt) ((opts) & OPT_SET(opt))
|
||||
|
||||
static const char optstr[NOPT] = "agnrsv";
|
||||
static const unsigned char flags[NOPT] = {
|
||||
static const unsigned char bootflags[NOPT] = {
|
||||
RBX_ASKNAME,
|
||||
RBX_GDB,
|
||||
RBX_NOINTR,
|
||||
@ -265,7 +265,7 @@ parse()
|
||||
for (i = 0; c != optstr[i]; i++)
|
||||
if (i == NOPT - 1)
|
||||
return -1;
|
||||
opts ^= OPT_SET(flags[i]);
|
||||
opts ^= OPT_SET(bootflags[i]);
|
||||
}
|
||||
} else {
|
||||
arg--;
|
||||
|
Loading…
Reference in New Issue
Block a user