unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: master a86c25c91f3 11/13: Prefer -I to -isystem
@ 2024-07-17 13:44 Eli Zaretskii
  2024-07-17 15:31 ` Paul Eggert
  2024-07-17 16:20 ` Collin Funk
  0 siblings, 2 replies; 4+ messages in thread
From: Eli Zaretskii @ 2024-07-17 13:44 UTC (permalink / raw)
  To: Paul Eggert; +Cc: emacs-devel

> branch: master
> commit a86c25c91f39a25a93d18c9267e024822c1bc43e
> Author: Paul Eggert <eggert@cs.ucla.edu>
> 
>     Prefer -I to -isystem
>     
>     * configure.ac: Simplify configuration by using -I instead of
>     -isystem, as -isystem is no longer helpful for suppressing
>     diagnostics (and likely has not been helpful for years).
>     Do not suppress -Wsystem-headers, as Gnulib no longer enables it.

Paul,

Contrary to your "famous last words" above, this change caused the
build issue a useless diagnostic in image.c, in a 32-bit build:

  d:/usr/include/glib-2.0/gobject/gparam.h:157:35: warning: result of '1 << 31' requires 33 bits to represent, but 'int' only has 32 bits [-Wshift-overflow=]
    157 |   G_PARAM_DEPRECATED          = 1 << 31
	|                                   ^~

While arguably a bug in Glib, the diagnostic is an annoyance, so I'd
like to avoid it.  I've verified that -Wno-system-headers doesn't
remove it.  -Wno-shift-overflow does, but I don't think suppressing
that globally is a good idea.



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

end of thread, other threads:[~2024-07-17 16:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17 13:44 master a86c25c91f3 11/13: Prefer -I to -isystem Eli Zaretskii
2024-07-17 15:31 ` Paul Eggert
2024-07-17 16:04   ` Eli Zaretskii
2024-07-17 16:20 ` Collin Funk

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