]> Dogcows Code - chaz/tar/commitdiff
Avoid compiler warnings.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 18 Oct 2007 21:36:38 +0000 (21:36 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 18 Oct 2007 21:36:38 +0000 (21:36 +0000)
* src/list.c (read_header_primitive): Define two locals, to
avoid incorrect "may be used uninitialized" warnings.
* src/incremen.c (procdir): Remove decl of unused local, "len".

expired.
SCALAR(0x830b08c)

ChangeLog
src/incremen.c
src/list.c

index c3b16eccabfd651a6fc6e10867c47c97c37f09ab..9b954df882c5ee7cfd5aafdcd0816a2da7e60fa3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,15 @@
+2007-10-18  Jim Meyering  <jim@meyering.net>
+
+       Avoid compiler warnings.
+       * src/list.c (read_header_primitive): Define two locals, to
+       avoid incorrect "may be used uninitialized" warnings.
+       * src/incremen.c (procdir): Remove decl of unused local, "len".
+
 2007-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
 
        * doc/tar.texi (gzip): Remove compression patent
        warning. According to Brett Smith, the patent is
-       expired. 
+       expired.
 
 2007-10-17  Sergey Poznyakoff  <gray@gnu.org.ua>
 
@@ -16,7 +23,7 @@
        * THANKS: Add Lasse Collin and Jean-Pierre Demailly.
        * NEWS: Update
        * doc/tar.texi: Update
-       
+
 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
 
        * src/utf8.c (string_ascii_p): Recode to avoid bogus GCC 4.2.1
index bc5fdaded62509ed85bf5b4b9f50a37ad2223489..d570082e2bf8055ad9df6aa844a80d3dfe77ff71 100644 (file)
@@ -336,7 +336,6 @@ procdir (char *name_buffer, struct stat *stat_data,
 
   {
     const char *tag_file_name;
-    size_t len;
     
     switch (check_exclusion_tags (name_buffer, &tag_file_name))
       {
index c9cdf8246fbf2134f7846aacc4ea91ee9532f195..b17f604303f60dac99f8c14f14338d0cf0091f82 100644 (file)
@@ -301,8 +301,8 @@ read_header_primitive (bool raw_extended_headers, struct tar_stat_info *info)
   size_t size, written;
   union block *next_long_name = 0;
   union block *next_long_link = 0;
-  size_t next_long_name_blocks;
-  size_t next_long_link_blocks;
+  size_t next_long_name_blocks = 0;
+  size_t next_long_link_blocks = 0;
 
   while (1)
     {
This page took 0.038842 seconds and 4 git commands to generate.