From b225e2a76bcd2b1f3f919a09dba1e186c0d4fa65 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 28 Aug 2004 00:43:07 +0000 Subject: Fixup some warnings --- archival/bunzip2.c | 2 ++ archival/libunarchive/decompress_bunzip2.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'archival') diff --git a/archival/bunzip2.c b/archival/bunzip2.c index 5be9da517..bedd38c22 100644 --- a/archival/bunzip2.c +++ b/archival/bunzip2.c @@ -33,6 +33,8 @@ int bunzip2_main(int argc, char **argv) { char *compressed_name; + /* Note: Ignore the warning about save_name being used uninitialized. + * That is not the case, but gcc has trouble working that out... */ char *save_name; unsigned long opt; int status; diff --git a/archival/libunarchive/decompress_bunzip2.c b/archival/libunarchive/decompress_bunzip2.c index 4b8ceb804..259a47776 100644 --- a/archival/libunarchive/decompress_bunzip2.c +++ b/archival/libunarchive/decompress_bunzip2.c @@ -134,6 +134,8 @@ static unsigned int get_bits(bunzip_data *bd, char bits_wanted) static int get_next_block(bunzip_data *bd) { + /* Note: Ignore the warning about hufGroup, base and limit being used uninitialized. + * They will be initialized on the fist pass of the loop. */ struct group_data *hufGroup; int dbufCount,nextSym,dbufSize,groupCount,*base,*limit,selector, i,j,k,t,runPos,symCount,symTotal,nSelectors,byteCount[256]; -- cgit v1.2.3