aboutsummaryrefslogtreecommitdiff
path: root/cgcc
diff options
context:
space:
mode:
authorJoel Soete <rubisher@scarlet.be>2009-12-12 19:09:31 +0000
committerChristopher <sparse@chrisli.org>2010-03-28 17:51:36 -0700
commit5ee6210240559cd77deca1da66216b2772d23f58 (patch)
tree3d6a371991aa02c0cf195363105fe6e7917b385e /cgcc
parentIgnore "naked" attribute (diff)
downloadsparse-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>
Diffstat (limited to 'cgcc')
-rwxr-xr-xcgcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgcc b/cgcc
index d37cf88..6636cc6 100755
--- a/cgcc
+++ b/cgcc
@@ -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};