summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2015-01-18 15:18:38 +0100
committerAkim Demaille <akim@lrde.epita.fr>2015-01-18 15:41:15 +0100
commit16832bf546d0d846081ef193e56931b1ebe7e4ab (patch)
tree31d3b115a49077e68a380f8da63ff4c572b6bd82
parent0ab29b7c200d864b3b0ce8eae26eeceab8112221 (diff)
downloadbison-16832bf546d0d846081ef193e56931b1ebe7e4ab.tar.gz
build: fix some warnings
Reported by John Horigan. http://lists.gnu.org/archive/html/bug-bison/2015-01/msg00034.html * src/graphviz.c, src/symtab.h: Address compiler warnings.
-rw-r--r--THANKS1
-rw-r--r--src/graphviz.c4
-rw-r--r--src/symtab.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/THANKS b/THANKS
index 875ac961..26bea0a7 100644
--- a/THANKS
+++ b/THANKS
@@ -66,6 +66,7 @@ Jim Kent jkent@arch.sel.sony.com
Jim Meyering jim@meyering.net
Joel E. Denny joeldenny@joeldenny.org
Johan van Selst johans@stack.nl
+John Horigan john@glyphic.com
Jonathan Fabrizio jonathan.fabrizio@lrde.epita.fr
Jonathan Nieder jrnieder@gmail.com
Juan Manuel Guerrero juan.guerrero@gmx.de
diff --git a/src/graphviz.c b/src/graphviz.c
index e7611b0f..663cf371 100644
--- a/src/graphviz.c
+++ b/src/graphviz.c
@@ -113,8 +113,8 @@ conclude_red (struct obstack *out, int source, rule_number ruleno,
with n the source state and m the rule number. This is because we
don't want all the reductions bearing a same rule number to point to
the same state, since that is not the desired format. */
- fprintf (fout, " %1$d -> \"%1$dR%2$d%3$s\" [",
- source, ruleno, ed);
+ fprintf (fout, " %d -> \"%dR%d%s\" [",
+ source, source, ruleno, ed);
/* (The lookahead tokens have been added to the beginning of the
obstack, in the caller function.) */
diff --git a/src/symtab.h b/src/symtab.h
index aa6d65bb..f92407f8 100644
--- a/src/symtab.h
+++ b/src/symtab.h
@@ -73,12 +73,12 @@ typedef enum
declared,
} status;
-typedef enum code_props_type code_props_type;
enum code_props_type
{
destructor = 0,
printer = 1,
};
+typedef enum code_props_type code_props_type;
enum { CODE_PROPS_SIZE = 2 };