mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
b8df54ffbe
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. |
||
---|---|---|
.. | ||
00gnulib.m4 | ||
alloca.m4 | ||
c-strtod.m4 | ||
dup2.m4 | ||
extensions.m4 | ||
filemode.m4 | ||
getloadavg.m4 | ||
getopt.m4 | ||
gl-comp.m4 | ||
gnulib-common.m4 | ||
gnulib-tool.m4 | ||
include_next.m4 | ||
inttypes.m4 | ||
largefile.m4 | ||
longlong.m4 | ||
lstat.m4 | ||
manywarnings.m4 | ||
md5.m4 | ||
mktime.m4 | ||
multiarch.m4 | ||
nocrash.m4 | ||
pathmax.m4 | ||
pthread_sigmask.m4 | ||
readlink.m4 | ||
sha1.m4 | ||
sha256.m4 | ||
sha512.m4 | ||
signal_h.m4 | ||
signalblocking.m4 | ||
socklen.m4 | ||
ssize_t.m4 | ||
st_dm_mode.m4 | ||
stat.m4 | ||
stdarg.m4 | ||
stdbool.m4 | ||
stddef_h.m4 | ||
stdint.m4 | ||
stdio_h.m4 | ||
stdlib_h.m4 | ||
strftime.m4 | ||
strtoimax.m4 | ||
strtoll.m4 | ||
strtoull.m4 | ||
strtoumax.m4 | ||
symlink.m4 | ||
sys_stat_h.m4 | ||
time_h.m4 | ||
time_r.m4 | ||
tm_gmtoff.m4 | ||
unistd_h.m4 | ||
warnings.m4 | ||
wchar_t.m4 |