aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Li <sparse@chrisli.org>2008-12-25 16:17:15 -0800
committerChristopher Li <sparse@chrisli.org>2008-12-28 20:10:55 -0800
commit405cd6edfe2e88c808f0a45f0c2ef92a854dbe67 (patch)
tree9055393af666fea9cbbb0c5c93700bfaa11f0a06 /symbol.c
parentTeach classify_type to handle typeof (diff)
downloadsparse-405cd6edfe2e88c808f0a45f0c2ef92a854dbe67.tar.gz
sparse-405cd6edfe2e88c808f0a45f0c2ef92a854dbe67.tar.bz2
sparse-405cd6edfe2e88c808f0a45f0c2ef92a854dbe67.zip
Warn about explicit usage of sizeof(void)
sizeof(void) still evaluate as 1 after the warning. void_ctype.bit_size remain zero so is_byte_type() will continue to work. Signed-Off-By: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/symbol.c b/symbol.c
index 02844cf..c82e530 100644
--- a/symbol.c
+++ b/symbol.c
@@ -834,7 +834,7 @@ static const struct ctype_declare {
struct symbol *base_type;
} ctype_declaration[] = {
{ &bool_ctype, SYM_BASETYPE, MOD_UNSIGNED, &bits_in_bool, &max_int_alignment, &int_type },
- { &void_ctype, SYM_BASETYPE, 0, &bits_in_char, NULL, NULL },
+ { &void_ctype, SYM_BASETYPE, 0, NULL, NULL, NULL },
{ &type_ctype, SYM_BASETYPE, MOD_TYPE, NULL, NULL, NULL },
{ &incomplete_ctype,SYM_BASETYPE, 0, NULL, NULL, NULL },
{ &bad_ctype, SYM_BASETYPE, 0, NULL, NULL, NULL },