[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] http.c:934: possible bad assert statement ?
From: |
Giuseppe Scrivano |
Subject: |
Re: [Bug-wget] http.c:934: possible bad assert statement ? |
Date: |
Wed, 30 Oct 2013 21:18:35 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
David Binderman <address@hidden> writes:
> Hello there,
>
> I just compiled wget with extra Linux gcc flag -Wlogical-op
>
> It said
>
> http.c:934:3: warning: logical 'or' of collectively exhaustive tests is
> always true [-Wlogical-op]
>
> Source code is
>
> assert (contlen != -1 || contlen);
I don't think it makes any sense, the rest of the function can deal with
any value. I am going to drop it.
Thanks to have reported it.
Giuseppe