maint: be compilable with GCC 4.0
authorAkim Demaille <akim@lrde.epita.fr>
Fri, 26 Oct 2012 12:16:29 +0000 (14:16 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Fri, 26 Oct 2012 12:25:11 +0000 (14:25 +0200)
commite0992e5458708f4e57f0ddc387ed5e22f3b9953e
tree498a59ce13328594f29c399cf640a63a577b0356
parent54dccdb2ca8bafc7c7556c6b1426caa8feaa5ebe
maint: be compilable with GCC 4.0

The "shadows a global declaration" warning in GCC 4.0 was a bit
annoying.  It does not like that a type name be used in a prototype of
a function (not the implementation, just the declaration):

  In file included from src/LR0.c:38:
  src/reader.h:56: warning: declaration of 'named_ref' shadows a
                            global declaration
  src/named-ref.h:35: warning: shadowed declaration is here

It does not like either when a global variable name is used in a
prototype.  Flex 2.5.37 generates this prototype:

  void gram_set_debug (int debug_flag  );

* src/getargs.h, src/getargs.c (debug_flag): Rename as...
(debug): this.
Adjust dependencies.
* src/reader.h: Don't use "named_ref" as a formal argument name.
src/getargs.c
src/getargs.h
src/output.c
src/parse-gram.y
src/reader.h