diff options
author | 2009-12-12 19:09:31 +0000 | |
---|---|---|
committer | 2010-03-28 17:51:36 -0700 | |
commit | 5ee6210240559cd77deca1da66216b2772d23f58 (patch) | |
tree | 3d6a371991aa02c0cf195363105fe6e7917b385e | |
parent | Ignore "naked" attribute (diff) | |
download | sparse-5ee6210240559cd77deca1da66216b2772d23f58.tar.gz sparse-5ee6210240559cd77deca1da66216b2772d23f58.tar.bz2 sparse-5ee6210240559cd77deca1da66216b2772d23f58.zip |
possible fix to cgcc issue in sparse 0.4.2:
Use of uninitialized value $bits in exists at /usr/bin/cgcc line 139.
/usr/bin/cgcc: weird number of bits. at /usr/bin/cgcc line 139.
Signed-off-by: Joel Soete <rubisher@scarlet.be>
Signed-off-by: Christopher Li <sparse@chrisli.org>
-rwxr-xr-x | cgcc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -120,7 +120,7 @@ sub integer_types { my @types = (['SCHAR',''], ['SHRT',''], ['INT',''], ['LONG','L'], ['LONG_LONG','LL'], ['LONG_LONG_LONG','LLL']); my $result = " -D__CHAR_BIT__=$char"; - while (@types) { + while (@types && @_) { my $bits = shift @_; my ($name,$suffix) = @{ shift @types }; die "$0: weird number of bits." unless exists $pow2m1{$bits}; |