all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: rcopley@gmail.com, eliz@gnu.org, emacs-devel@gnu.org
Subject: Re: C warning in MSYS2 build
Date: Fri, 06 Oct 2017 11:16:26 -0400	[thread overview]
Message-ID: <E1e0UMU-0001vP-J6@fencepost.gnu.org> (raw)
In-Reply-To: <281d43c7-b3a9-be40-a8e7-c8021c286f59@cs.ucla.edu> (message from Paul Eggert on Thu, 5 Oct 2017 12:32:26 -0700)

[[[ 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.

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.
If that works around a GCC bug, that is good -- but the bug
still needs to be fixed.

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.




  parent reply	other threads:[~2017-10-06 15:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-05 17:44 C warning in MSYS2 build Richard Copley
2017-10-05 18:54 ` Eli Zaretskii
2017-10-05 19:32   ` Paul Eggert
2017-10-05 20:08     ` Richard Copley
2017-10-05 22:44       ` Paul Eggert
2017-10-06 15:16     ` Richard Stallman [this message]
2017-10-06 17:23       ` Richard Copley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1e0UMU-0001vP-J6@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rcopley@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.