]> git.saurik.com Git - bison.git/blobdiff - src/getargs.c
Fix unexpanded macros in GLR defines file.
[bison.git] / src / getargs.c
index 53934f336084a3a2b6de972d0a7ffdb53c01cfe4..2a0611bc315ac9a245c539b0556e78c6637d33ea 100644 (file)
@@ -499,7 +499,7 @@ static struct option const long_options[] =
 /* Build a location for the current command line argument. */
 static
 location
-command_line_location()
+command_line_location (void)
 {
   location res;
   /* "<command line>" is used in GCC's messages about -D. */
@@ -531,9 +531,8 @@ getargs (int argc, char *argv[])
           char* value = strchr (optarg, '=');
           if (value)
             *value++ = 0;
-          else
-            value = "";
-          muscle_percent_define_insert (name, command_line_location (), value);
+          muscle_percent_define_insert (name, command_line_location (),
+                                        value ? value : "");
         }
        break;