aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorPavel Roskin <proski@gnu.org>2007-06-28 01:39:54 -0400
committerJosh Triplett <josh@freedesktop.org>2007-06-27 22:59:36 -0700
commit278865d689f60480c1a946f0cace8632b25faf56 (patch)
tree731557aef0d1622c63d9216b8decc2ff883180e2
parent36e13ae4117a23f725f05b6a03ea7ae12c6edc39 (diff)
downloadsparse-dev-278865d689f60480c1a946f0cace8632b25faf56.tar.gz
Bitfield without explicit sign should be a warning, not an error
The -Wdefault-bitfield-sign is supposed to control a warning, just like other -W options. Signed-off-by: Pavel Roskin <proski@gnu.org>
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index cb9f87a3..ab3a096f 100644
--- a/parse.c
+++ b/parse.c
@@ -1282,7 +1282,7 @@ static struct token *handle_bitfield(struct token *token, struct symbol *decl)
!(bitfield_type->ctype.modifiers & MOD_EXPLICITLY_SIGNED) &&
is_signed) {
// The sign of bitfields is unspecified by default.
- sparse_error(token->pos, "dubious bitfield without explicit `signed' or `unsigned'");
+ warning(token->pos, "dubious bitfield without explicit `signed' or `unsigned'");
}
}
bitfield->bit_size = width;