From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Problems with --enable-gcc-warnings
Date: Wed, 18 Dec 2013 18:17:49 +0200 [thread overview]
Message-ID: <8361qmcevm.fsf@gnu.org> (raw)
In-Reply-To: <52B12107.8020309@cs.ucla.edu>
> Date: Tue, 17 Dec 2013 20:13:59 -0800
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: emacs-devel@gnu.org
>
> Eli Zaretskii wrote:
> >> The 'configure'-time code already does the latter, or tries to --
> > Can you point to that code, please?
>
> The source is in m4/warnings.m4 and m4/manywarnings.m4.
Sorry, I thought there was something else.
The reason these tests don't really do the job is clear from
config.log:
configure:8072: checking whether C compiler handles -Wenum-compare
configure:8091: gcc -std=gnu99 -o conftest -O0 -g3 -Wenum-compare -DGLYPH_DEBUG=1 conftest.c >&5
cc1: warning: command line option "-Wenum-compare" is valid for C++/ObjC++ but not for C
configure:8091: $? = 0
configure:8102: result: yes
IOW, the test expects the compiler to fail, but warnings don't fail
until you add -Werror to the game.
So perhaps the test should use -Werror as well, to ensure such
warnings fail the compilation of test programs.
prev parent reply other threads:[~2013-12-18 16:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-17 17:57 Problems with --enable-gcc-warnings Eli Zaretskii
2013-12-17 20:49 ` Paul Eggert
2013-12-17 21:08 ` Eli Zaretskii
2013-12-17 22:20 ` Paul Eggert
2013-12-18 3:50 ` Eli Zaretskii
2013-12-18 4:13 ` Paul Eggert
2013-12-18 16:17 ` Eli Zaretskii [this message]
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=8361qmcevm.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
/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.