diff options
author | Christopher Li <sparse@chrisli.org> | 2008-12-25 16:17:15 -0800 |
---|---|---|
committer | Christopher Li <sparse@chrisli.org> | 2008-12-28 20:10:55 -0800 |
commit | 405cd6edfe2e88c808f0a45f0c2ef92a854dbe67 (patch) | |
tree | 9055393af666fea9cbbb0c5c93700bfaa11f0a06 /symbol.c | |
parent | Teach classify_type to handle typeof (diff) | |
download | sparse-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 }, |