Remove wrong symbol from warning messages.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sun, 30 Nov 2008 14:16:26 +0000 (14:16 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 30 Nov 2008 14:16:26 +0000 (14:16 +0000)
[r24159]

parser.c

index 49a40bd..f52ce43 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -3557,13 +3557,11 @@ static void finish_struct_type(compound_type_t *type)
                need_pad = true;
 
        if (warning.padded && need_pad) {
-               warningf(&compound->base.source_position,
-                       "'%#T' needs padding", type, compound->base.symbol);
+               warningf(&compound->base.source_position, "'%T' needs padding", type);
        }
        if (warning.packed && !need_pad) {
                warningf(&compound->base.source_position,
-                       "superfluous packed attribute on '%#T'",
-                       type, compound->base.symbol);
+                               "superfluous packed attribute on '%T'", type);
        }
 
        type->base.size      = offset;