diff options
| author | Pavel Roskin <proski@gnu.org> | 2007-06-28 01:39:54 -0400 |
|---|---|---|
| committer | Josh Triplett <josh@freedesktop.org> | 2007-06-27 22:59:36 -0700 |
| commit | 278865d689f60480c1a946f0cace8632b25faf56 (patch) | |
| tree | 731557aef0d1622c63d9216b8decc2ff883180e2 | |
| parent | 36e13ae4117a23f725f05b6a03ea7ae12c6edc39 (diff) | |
| download | sparse-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
