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:
Joel E. Denny
2008-11-17 10:36:28 -05:00
parent d50eea6df5
commit a8beef7e6a
2 changed files with 13 additions and 4 deletions

View File

@@ -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.

View File

@@ -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;