Fix regression: A format argument went missing.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 21 Jun 2011 16:07:43 +0000 (18:07 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 21 Jun 2011 16:07:43 +0000 (18:07 +0200)
parser.c

index 90e8ca4..c2ee10a 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -10386,7 +10386,7 @@ static void check_unused_globals(void)
                        s   = "defined";
                }
 
-               warningf(why, &declaration->base.source_position, "'%#N' %s but not used", entity);
+               warningf(why, &declaration->base.source_position, "'%#N' %s but not used", entity, s);
        }
 }