Bin Meng writes:
> Hi Markus,
>
> On Mon, Sep 27, 2021 at 2:51 PM Markus Armbruster wrote:
>>
>> Bin Meng writes:
>>
>> > GCC seems to be strict about processing pattern like "!!for & bar".
>> > When 'bar' is not 0 or 1, it complains with -Werror=parentheses:
>> >
>> > suggest parentheses
Hi Markus,
On Mon, Sep 27, 2021 at 2:51 PM Markus Armbruster wrote:
>
> Bin Meng writes:
>
> > GCC seems to be strict about processing pattern like "!!for & bar".
> > When 'bar' is not 0 or 1, it complains with -Werror=parentheses:
> >
> > suggest parentheses around operand of ‘!’ or change
Bin Meng writes:
> GCC seems to be strict about processing pattern like "!!for & bar".
> When 'bar' is not 0 or 1, it complains with -Werror=parentheses:
>
> suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to
> ‘~’ [-Werror=parentheses]
>
> Add a () around "foo && bar",
Hi Philippe,
On Mon, Sep 27, 2021 at 12:47 PM Philippe Mathieu-Daudé wrote:
>
> On 9/27/21 04:21, Bin Meng wrote:
> > GCC seems to be strict about processing pattern like "!!for & bar".
> > When 'bar' is not 0 or 1, it complains with -Werror=parentheses:
> >
> > suggest parentheses around
On 9/27/21 06:47, Philippe Mathieu-Daudé wrote:
> On 9/27/21 04:21, Bin Meng wrote:
>> GCC seems to be strict about processing pattern like "!!for & bar".
What GCC version btw?
>> When 'bar' is not 0 or 1, it complains with -Werror=parentheses:
>>
>> suggest parentheses around operand of ‘!’
On 9/27/21 04:21, Bin Meng wrote:
> GCC seems to be strict about processing pattern like "!!for & bar".
> When 'bar' is not 0 or 1, it complains with -Werror=parentheses:
>
> suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to
> ‘~’ [-Werror=parentheses]
>
> Add a ()
GCC seems to be strict about processing pattern like "!!for & bar".
When 'bar' is not 0 or 1, it complains with -Werror=parentheses:
suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’
[-Werror=parentheses]
Add a () around "foo && bar", which also improves code