1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-29 19:48:19 +00:00
emacs/lib
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
..
alloca.in.h
allocator.c
allocator.h
careadlinkat.c
careadlinkat.h
COPYING
dosname.h
dtoastr.c
dup2.c Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
filemode.c
filemode.h
ftoastr.c
ftoastr.h
getloadavg.c
getopt1.c
getopt_.h
getopt_int.h
getopt.c
getopt.in.h
gettext.h
gnulib.mk Port to older Solaris 10 versions (Bug#10677). 2012-01-31 22:04:34 -08:00
ignore-value.h
intprops.h
inttypes.in.h
lstat.c Merge from gnulib, porting to Tru64. 2011-09-11 09:52:58 -07:00
Makefile.am configure: new option --enable-gcc-warnings 2012-04-09 00:45:59 -07:00
makefile.w32-in Fix parallel build and bootstrap on MS-Windows. 2012-04-07 13:19:22 +03:00
md5.c
md5.h
min-max.h
mktime-internal.h
mktime.c
pathmax.h Port to older Solaris 10 versions (Bug#10677). 2012-01-31 22:04:34 -08:00
pthread_sigmask.c Merge from gnulib, using build-aux to remove clutter. 2011-07-24 15:15:47 -07:00
readlink.c
sha1.c
sha1.h
sha256.c Fix typos. 2011-11-20 04:48:53 +01:00
sha256.h
sha512.c Fix typos. 2011-11-20 04:48:53 +01:00
sha512.h
signal.in.h Merge from gnulib, fixing some 'configure' typos (Bug#9696). 2011-10-07 14:15:00 -07:00
sigprocmask.c Merge from gnulib, fixing some 'configure' typos (Bug#9696). 2011-10-07 14:15:00 -07:00
stat.c Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
stdarg.in.h
stdbool.in.h
stddef.in.h
stdint.in.h
stdio.in.h Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
stdlib.in.h Merge from gnulib, using build-aux to remove clutter. 2011-07-24 15:15:47 -07:00
strftime.c
strftime.h
strtoimax.c
strtol.c
strtoll.c
strtoul.c
strtoull.c
strtoumax.c
symlink.c
sys_stat.in.h Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
time_r.c
time.in.h
u64.h
unistd.in.h Merge from gnulib, improving some licensing wording. 2011-09-26 14:30:18 -07:00
verify.h