Wireshark mailing list archives
Re: error: logical && with non-zero constant will always evaluate as true
From: Jeff Morriss <jeff.morriss.ws () gmail com>
Date: Thu, 03 Jan 2013 16:40:03 -0500
Jeff Morriss wrote:
My (Fedora 10) gcc 4.3.2 was also generating this warning; it would seem that a fair spread of gcc versions seem to have the problem.I added a configure check to stop using -Wlogical-op if the compiler is generating this warning in r46916.
Interestingly the Ubuntu buildbot says it would also get the warning:
checking whether we can add -Wlogical-op to CFLAGS... yes checking whether -Wlogical-op generates warnings from strchr()... yes
but it was not getting the error before.I wonder if the use of ccache on the bot was having some effect? Or something else?
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Re: error: logical && with non-zero constant will always evaluate as true Jeff Morriss (Jan 03)
- Re: error: logical && with non-zero constant will always evaluate as true Jeff Morriss (Jan 03)
- Re: error: logical && with non-zero constant will always evaluate as true Guy Harris (Jan 03)
- Re: error: logical && with non-zero constant will always evaluate as true Jeff Morriss (Jan 04)
- Re: error: logical && with non-zero constant will always evaluate as true Guy Harris (Jan 03)
- <Possible follow-ups>
- Re: error: logical && with non-zero constant will always evaluate as true Jakub Zawadzki (Jan 03)
- Re: error: logical && with non-zero constant will always evaluate as true Jeff Morriss (Jan 03)