[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C warning in MSYS2 build

From: Richard Copley
Subject: Re: C warning in MSYS2 build
Date: Fri, 6 Oct 2017 18:23:04 +0100

On 6 October 2017 at 16:16, Richard Stallman <address@hidden> wrote:
> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>   > The GCC bug is not fixed yet. etags.c confused GCC by using an
>   > assignment inside an 'if' expression, which is contrary to the usual GNU
>   > style, and last year I worked around the GCC bug by changing etags.c to
>   > use a cleaner style. I notice that indent.c also has an assignment
>   > inside an 'if' expression that is relevant to these warnings. Richard,
>   > does it help to recode indent.c to use the usual GNU style, as in the
>   > attached patch?
> I don't understand the question.

Paul was asking me to test the attached patch.

> An assignment inside an if condition is somewhat ugly,
> and moving the assignment out of the code is in general
> a good thing for clarity.  So by all means do it.

That's not the proposal. You're free to read the patch if you wish.

> If that works around a GCC bug, that is good -- but the bug
> still needs to be fixed.

Indeed, but fortunately the impact is low.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]