diff options
author | 2013-05-03 22:29:11 +0000 | |
---|---|---|
committer | 2013-05-03 22:29:11 +0000 | |
commit | d32fc05f7f913f12eb68309b0e822918175808d7 (patch) | |
tree | c093d6f47f635b59f23c8d733c52bf9ec55349df /www-client/httrack/files | |
parent | Add arm/s390 love #467902 by Mr. Bones.. (diff) | |
download | gentoo-2-d32fc05f7f913f12eb68309b0e822918175808d7.tar.gz gentoo-2-d32fc05f7f913f12eb68309b0e822918175808d7.tar.bz2 gentoo-2-d32fc05f7f913f12eb68309b0e822918175808d7.zip |
www-client/httrack: Fix "severe warnings"
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0x401A1600)
Diffstat (limited to 'www-client/httrack/files')
-rw-r--r-- | www-client/httrack/files/httrack-3.47.7-warnings.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/www-client/httrack/files/httrack-3.47.7-warnings.patch b/www-client/httrack/files/httrack-3.47.7-warnings.patch new file mode 100644 index 000000000000..9f6ba964800b --- /dev/null +++ b/www-client/httrack/files/httrack-3.47.7-warnings.patch @@ -0,0 +1,41 @@ +From 80d9d1b3003ff79ddee26e9fd09eb1b746b6bf5c Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Sat, 4 May 2013 00:14:32 +0200 +Subject: [PATCH] Fix GCC warnings +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +httrack.c: In function ‘htsshow_loop’: +httrack.c:446:21: warning: the address of ‘tempo’ will always evaluate as ‘true’ +httrack.c:480:19: warning: the address of ‘s’ will always evaluate as ‘true’ +httrack.c:484:19: warning: the address of ‘s’ will always evaluate as ‘true’ +--- + src/httrack.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/httrack.h b/src/httrack.h +index 8b049a1..90ca9d5 100644 +--- a/src/httrack.h ++++ b/src/httrack.h +@@ -129,7 +129,7 @@ extern FILE* ioinfo; + } while(0) + #define strncatbuff(A, B, N) do { \ + assertf( (A) != NULL ); \ +- if ( ! (B) ) { assertf( 0 ); } \ ++ if ( (B) == NULL ) { assertf( 0 ); } \ + if (htsMemoryFastXfr) { \ + if (sizeof(A) != sizeof(char*)) { \ + (A)[sizeof(A) - 1] = '\0'; \ +@@ -158,7 +158,7 @@ extern FILE* ioinfo; + } while(0) + #define strcpybuff(A, B) do { \ + assertf( (A) != NULL ); \ +- if ( ! (B) ) { assertf( 0 ); } \ ++ if ( (B) == NULL ) { assertf( 0 ); } \ + if (htsMemoryFastXfr) { \ + if (sizeof(A) != sizeof(char*)) { \ + (A)[sizeof(A) - 1] = '\0'; \ +-- +1.8.1.5 + |