1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00
emacs/m4
Paul Eggert b8df54ffbe configure: new option --enable-gcc-warnings
I have been using this change for many months in my private copy
of Emacs, and have used it to find several bugs.  It's mature
enough to publish now.
* Makefile.in (GNULIB_MODULES): Add warnings, manywarnings.
* configure.in: Support --enable-gcc-warnings, in the style of
other GNU packages such as coreutils.
(C_WARNINGS_SWITCH): Remove, replacing with...
(WARN_CFLAGS, GNULIB_WARN_CFLAGS): New variable.
(PKG_CHECK_MODULES, C_SWITCH_X_SITE): Use -isystem rather than -I,
when including system files with GCC.
* etc/NEWS: Mention --enable-gcc-warnings.
* lib/Makefile.am (AM_CFLAGS): New macro.
* m4/manywarnings.m4, m4/warnings.m4: New files, from gnulib.
* lib-src/Makefile.in (C_WARNINGS_SWITCH): Remove.
(WARN_CFLAGS, WERROR_CFLAGS): New macros.
(BASE_CFLAGS): Use new macros rather than old.
* lwlib/Makefile.in (C_WARNINGS_SWITCH): Remove.
(WARN_CFLAGS, WERROR_CFLAGS): New macros.
(ALL_CFLAGS): Use new macros rather than old.
* oldXMenu/Makefile.in (C_WARNINGS_SWITCH): Remove.
(WARN_CFLAGS, WERROR_CFLAGS): New macros.
(ALL_CFLAGS): Use new macros rather than old.
* src/Makefile.in (C_WARNINGS_SWITCH): Remove.
(WARN_CFLAGS, WERROR_CFLAGS): New macros.
(ALL_CFLAGS): Use new macros rather than old.
* src/process.c: Ignore -Wstrict-overflow to work around GCC bug 52904.
* src/regex.c: Ignore -Wstrict-overflow.  If !emacs, also ignore
-Wunused-but-set-variable, -Wunused-function, -Wunused-macros,
-Wunused-result, -Wunused-variable.  This should go away once
the Emacs and Gnulib regex code is merged.
(xmalloc, xrealloc): Now static.
2012-04-09 00:45:59 -07:00
..
00gnulib.m4 Regenerate. 2011-01-08 13:19:44 -08:00
alloca.m4 * m4/alloca.m4: Merge whitespace changes from gnulib. 2011-07-06 09:19:38 -07:00
c-strtod.m4 Merge from gnulib: lib/gnulib.mk, m4/*.m4. 2011-06-15 15:27:54 -07:00
dup2.m4 Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
extensions.m4 Merge from gnulib, using build-aux to remove clutter. 2011-07-24 15:15:47 -07:00
filemode.m4 Merge from gnulib: lib/gnulib.mk, m4/*.m4. 2011-06-15 15:27:54 -07:00
getloadavg.m4 Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
getopt.m4 Merge from gnulib, using build-aux to remove clutter. 2011-07-24 15:15:47 -07:00
gl-comp.m4 Port to older Solaris 10 versions (Bug#10677). 2012-01-31 22:04:34 -08:00
gnulib-common.m4 Merge from gnulib, fixing some 'configure' typos (Bug#9696). 2011-10-07 14:15:00 -07:00
gnulib-tool.m4 Regenerate. 2011-01-08 13:19:44 -08:00
include_next.m4 Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
inttypes.m4 Merge from gnulib. 2011-05-17 17:35:01 -07:00
largefile.m4 Merge from gnulib. 2011-09-03 16:08:32 -07:00
longlong.m4 Import simpler crypto/md5 module from gnulib, plus stdint module. 2011-02-18 23:28:29 -08:00
lstat.m4 * m4/lstat.m4: Merge from gnulib (Bug#8878). 2011-06-16 16:10:17 -07:00
manywarnings.m4 configure: new option --enable-gcc-warnings 2012-04-09 00:45:59 -07:00
md5.m4 Merge from gnulib: lib/gnulib.mk, m4/*.m4. 2011-06-15 15:27:54 -07:00
mktime.m4 Merge from gnulib: lib/gnulib.mk, m4/*.m4. 2011-06-15 15:27:54 -07:00
multiarch.m4 src/config.in: shrink slightly 2011-01-21 16:12:10 -08:00
nocrash.m4 Merge from gnulib, porting to Tru64. 2011-09-11 09:52:58 -07:00
pathmax.m4 Port to older Solaris 10 versions (Bug#10677). 2012-01-31 22:04:34 -08:00
pthread_sigmask.m4 Merge from gnulib. 2011-09-03 16:08:32 -07:00
readlink.m4 Merge from gnulib: lib/gnulib.mk, m4/*.m4. 2011-06-15 15:27:54 -07:00
sha1.m4 Merge from gnulib: lib/gnulib.mk, m4/*.m4. 2011-06-15 15:27:54 -07:00
sha256.m4 Add crypto/sha256 and crypto/sha512 modules from gnulib 2011-06-21 16:45:39 +08:00
sha512.m4 Add crypto/sha256 and crypto/sha512 modules from gnulib 2011-06-21 16:45:39 +08:00
signal_h.m4 Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
signalblocking.m4 Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
socklen.m4 Merge from gnulib, for socklen_t. 2011-03-20 09:28:22 -07:00
ssize_t.m4 Replace two copies of readlink code with single gnulib version. 2011-03-31 23:28:48 -07:00
st_dm_mode.m4 Import filemode module from gnulib. 2011-02-20 02:51:50 -08:00
stat.m4 Merge from gnulib: lib/gnulib.mk, m4/*.m4. 2011-06-15 15:27:54 -07:00
stdarg.m4 Use C99's va_copy to avoid undefined behavior on x86-64 GNU/Linux. 2011-05-04 00:19:21 -07:00
stdbool.m4 * lib/gnulib.mk, m4/stdbool.m4, m4/stddef_h.m4, m4/stdint.m4: Merge from gnulib. 2011-04-06 00:04:53 -07:00
stddef_h.m4 * lib/gnulib.mk, m4/stdbool.m4, m4/stddef_h.m4, m4/stdint.m4: Merge from gnulib. 2011-04-06 00:04:53 -07:00
stdint.m4 Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
stdio_h.m4 Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
stdlib_h.m4 [ChangeLog] 2011-02-22 11:30:07 -08:00
strftime.m4 Merge from gnulib: lib/gnulib.mk, m4/*.m4. 2011-06-15 15:27:54 -07:00
strtoimax.m4 Merge from gnulib. 2011-09-03 16:08:32 -07:00
strtoll.m4 Add strtoimax module, needed for Solaris 8 port. 2011-07-08 17:18:49 -07:00
strtoull.m4 Merge from gnulib: lib/gnulib.mk, m4/*.m4. 2011-06-15 15:27:54 -07:00
strtoumax.m4 Merge from gnulib. 2011-09-03 16:08:32 -07:00
symlink.m4 Merge from gnulib: lib/gnulib.mk, m4/*.m4. 2011-06-15 15:27:54 -07:00
sys_stat_h.m4 Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
time_h.m4 Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
time_r.m4 Merge from gnulib: lib/gnulib.mk, m4/*.m4. 2011-06-15 15:27:54 -07:00
tm_gmtoff.m4 strftime: import from gnulib 2011-01-30 15:34:18 -08:00
unistd_h.m4 Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
warnings.m4 configure: new option --enable-gcc-warnings 2012-04-09 00:45:59 -07:00
wchar_t.m4 Regenerate. 2011-01-08 22:57:07 -08:00