public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in www-client/httrack/files: httrack-3.47.7-warnings.patch
@ 2013-05-03 22:29 Sebastian Pipping (sping)
  0 siblings, 0 replies; only message in thread
From: Sebastian Pipping (sping) @ 2013-05-03 22:29 UTC (permalink / raw
  To: gentoo-commits

sping       13/05/03 22:29:11

  Added:                httrack-3.47.7-warnings.patch
  Log:
  www-client/httrack: Fix "severe warnings"
  
  (Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0x401A1600)

Revision  Changes    Path
1.1                  www-client/httrack/files/httrack-3.47.7-warnings.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/httrack/files/httrack-3.47.7-warnings.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/httrack/files/httrack-3.47.7-warnings.patch?rev=1.1&content-type=text/plain

Index: httrack-3.47.7-warnings.patch
===================================================================
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






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-03 22:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-03 22:29 [gentoo-commits] gentoo-x86 commit in www-client/httrack/files: httrack-3.47.7-warnings.patch Sebastian Pipping (sping)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox