unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Problems with --enable-gcc-warnings
@ 2013-12-17 17:57 Eli Zaretskii
  2013-12-17 20:49 ` Paul Eggert
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2013-12-17 17:57 UTC (permalink / raw)
  To: Paul Eggert; +Cc: emacs-devel

I tried that option in several systems and saw a few problems I
thought I should mention here.

First, it seems like older compilers have trouble with some of the
warning options.  On one system, which has GCC 3.4, I see this:

  cc1.exe: warning: command line option "-Wabi" is valid for C++/ObjC++ but not for C
  cc1.exe: warning: command line option "-Wdeprecated" is valid for C++/Java/ObjC++ but not for C

On another system, which has GCC 4.4 (fencepost.gnu.org), I see this:

  cc1: warning: command line option "-Wenum-compare" is valid for C++/ObjC++ but not for C

If these options are not universally supported, why doesn't configure
make some real test, and avoid using those if they are not supported
for C programs?  Alternatively, if these warnings are not supposed to
be turned on unless GCC is of some relatively new version, why isn't
that being tested?

Then I had a warning in lib/file-has-acl.c, because under some
conditions the acl_access_nontrivial doesn't return a value (look near
its end).

Lastly, the INT_BUFSIZE_BOUND macro seems to be unable to support
'void *' as its argument without emitting warnings, I need to use
intptr_t instead to pacify the compiler.

Thanks.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-12-18 16:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).