Re: [code] PATCH: Silence some compilation warnings; lspawn.c

From: Mitchell <m.att.foicica.com>
Date: Wed, 24 Aug 2016 10:41:56 -0400 (EDT)

Hi Markus,

On Wed, 24 Aug 2016, Markus F.X.J. Oberhumer wrote:

> Hi Mitchell,
>
> here is an interesting warning spotted by clang-3.9 - this probably indicates
> a bug: the "||" should be a "&&":
>
> gtdialog.c:595:39: error: overlapping comparisons always evaluate to true [-Werror,-Wtautological-overlap-compare]
> if (type >= GTDIALOG_INPUTBOX ||
> ~~~~~~~~~~~~~~~~~~~~~~~~~~^~

Yes, that is a bug -- it should be "&&". Thanks!

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 24 Aug 2016 - 10:41:56 EDT

This archive was generated by hypermail 2.2.0 : Thu 25 Aug 2016 - 06:39:28 EDT