1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-11 05:51:21 -08:00
emacs/lib-src
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
..
.gitignore Don't ignore files that are no longer generated 2011-02-13 19:35:05 +01:00
ChangeLog configure: new option --enable-gcc-warnings 2012-04-09 00:45:59 -07:00
COPYING
ebrowse.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
emacsclient.c Define -print-nonl client command 2012-03-11 18:53:07 +01:00
etags.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
grep-changelog Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
hexl.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
make-docfile.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
Makefile.in configure: new option --enable-gcc-warnings 2012-04-09 00:45:59 -07:00
makefile.w32-in Support building on MS-Windows with libxml2. 2012-04-07 16:57:36 +03:00
movemail.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
ntlib.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
ntlib.h Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
pop.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
pop.h Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
profile.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
rcs-checkin Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
rcs2log Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
README
test-distrib.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
testfile
update-game-score.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
vcdiff Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00

This directory contains the source code for the architecture-dependent
files that go in ${archlibdir}.  At present, these are mostly utility
programs used by GNU Emacs.