From bd60a2469a358a49162c2b1a078a377f7223da71 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 12 Nov 2009 10:17:55 -0500 Subject: remove the last of the windows W4 warnings --- .../cmlibarchive/libarchive/archive_write_disk_set_standard_lookup.c | 3 ++- .../cmlibarchive/libarchive/archive_write_set_compression_bzip2.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Utilities/cmlibarchive/libarchive/archive_write_disk_set_standard_lookup.c b/Utilities/cmlibarchive/libarchive/archive_write_disk_set_standard_lookup.c index 97828f6..2849b9f 100644 --- a/Utilities/cmlibarchive/libarchive/archive_write_disk_set_standard_lookup.c +++ b/Utilities/cmlibarchive/libarchive/archive_write_disk_set_standard_lookup.c @@ -237,7 +237,8 @@ hash(const char *p) unsigned g, h = 0; while (*p != '\0') { h = ( h << 4 ) + *p++; - if (( g = h & 0xF0000000 )) { + g = h & 0xF0000000; + if (g) { h ^= g >> 24; h &= 0x0FFFFFFF; } diff --git a/Utilities/cmlibarchive/libarchive/archive_write_set_compression_bzip2.c b/Utilities/cmlibarchive/libarchive/archive_write_set_compression_bzip2.c index a617daf..ec5ff42 100644 --- a/Utilities/cmlibarchive/libarchive/archive_write_set_compression_bzip2.c +++ b/Utilities/cmlibarchive/libarchive/archive_write_set_compression_bzip2.c @@ -284,7 +284,8 @@ archive_compressor_bzip2_finish(struct archive_write *a) } /* Finish compression cycle. */ - if ((ret = drive_compressor(a, state, 1))) + ret = drive_compressor(a, state, 1); + if (ret) goto cleanup; /* Optionally, pad the final compressed block. */ -- cgit v0.12