mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Fix last warning from --enable-gcc-warnings.
* src/getargs.c (getargs): Don't assign const address to non-const pointer.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2008-11-17 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||
|
||||
Fix last warning from --enable-gcc-warnings.
|
||||
* src/getargs.c (getargs): Don't assign const address to non-const
|
||||
pointer.
|
||||
|
||||
2008-11-17 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||
|
||||
Don't let maintainer-*-check targets force a version update.
|
||||
|
||||
@@ -529,11 +529,14 @@ getargs (int argc, char *argv[])
|
||||
{
|
||||
char* name = optarg;
|
||||
char* value = strchr (optarg, '=');
|
||||
char const * muscle_value = "";
|
||||
if (value)
|
||||
*value++ = 0;
|
||||
else
|
||||
value = "";
|
||||
muscle_percent_define_insert (name, command_line_location (), value);
|
||||
{
|
||||
*value++ = 0;
|
||||
muscle_value = value;
|
||||
}
|
||||
muscle_percent_define_insert (name, command_line_location (),
|
||||
muscle_value);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user