- 2012-04-14 Paul Eggert <eggert@cs.ucla.edu>
++2012-04-17 Paul Eggert <eggert@cs.ucla.edu>
+
+ configure: new option --enable-gcc-warnings (Bug#11207)
+ 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.
+
+ 2012-04-17 Dmitry Antipov <dmantipov@yandex.ru>
+
+ * configure.in (AC_CHECK_FUNCS):
+ Add getpwent, endpwent, getgrent, endgrent. (Bug#7900)
+
+ 2012-04-16 Glenn Morris <rgm@gnu.org>
+
+ * configure.in (NS_HAVE_NSINTEGER): Remove unnecessary variable.
+
+ * configure.in: Remove X libs workaround for old autoconf.
+
2012-04-12 Ken Brown <kbrown@cornell.edu>
* configure.in: Warn that Cygwin 1.5 is unsupported. (Bug#10398)
\f
* Installation Changes in Emacs 24.2
- may or may not be useful. By default, these warnings are not generated.
+
+** New configure option '--enable-gcc-warnings', intended for developers.
+If building with GCC, this enables compile-time checks that warn about
+possibly-questionable C code. On a recent GNU system there should be
+no warnings; on older and on non-GNU systems the generated warnings
++may be useful.
+
\f
* Startup Changes in Emacs 24.2
- 2012-04-16 Paul Eggert <eggert@cs.ucla.edu>
++2012-04-17 Paul Eggert <eggert@cs.ucla.edu>
+
+ configure: new option --enable-gcc-warnings (Bug#11207)
+ * Makefile.in (C_WARNINGS_SWITCH): Remove.
+ (WARN_CFLAGS, WERROR_CFLAGS): New macros.
+ (BASE_CFLAGS): Use new macros rather than old.
+
2012-04-16 Paul Eggert <eggert@cs.ucla.edu>
Assume less-ancient POSIX support.
- 2012-04-14 Paul Eggert <eggert@cs.ucla.edu>
++2012-04-17 Paul Eggert <eggert@cs.ucla.edu>
+
+ configure: new option --enable-gcc-warnings (Bug#11207)
+ * Makefile.in (C_WARNINGS_SWITCH): Remove.
+ (WARN_CFLAGS, WERROR_CFLAGS): New macros.
+ (ALL_CFLAGS): Use new macros rather than old.
+
2012-04-11 Glenn Morris <rgm@gnu.org>
* Makefile.in (C_SWITCH_X_SYSTEM): Remove.
- 2012-04-14 Paul Eggert <eggert@cs.ucla.edu>
++2012-04-17 Paul Eggert <eggert@cs.ucla.edu>
+
+ configure: new option --enable-gcc-warnings (Bug#11207)
+ * sed1v2.inp, sed3v2.inp, sedlibmk.inp: GNULIB_WARN_CFLAGS,
+ WARN_CFLAGS, and WERROR_CFLAGS replace C_WARNINGS_SWITCH.
+
2012-04-11 Glenn Morris <rgm@gnu.org>
* sedlibmk.inp, sed1v2.inp: GNUSTEP_CFLAGS replaces C_SWITCH_X_SYSTEM.
- 2012-04-14 Paul Eggert <eggert@cs.ucla.edu>
++2012-04-17 Paul Eggert <eggert@cs.ucla.edu>
+
+ configure: new option --enable-gcc-warnings (Bug#11207)
+ * Makefile.in (C_WARNINGS_SWITCH): Remove.
+ (WARN_CFLAGS, WERROR_CFLAGS): New macros.
+ (ALL_CFLAGS): Use new macros rather than old.
+
2012-04-11 Glenn Morris <rgm@gnu.org>
* Makefile.in (C_SWITCH_X_SYSTEM): Remove.
++2012-04-17 Paul Eggert <eggert@cs.ucla.edu>
++
++ configure: new option --enable-gcc-warnings (Bug#11207)
++ * Makefile.in (C_WARNINGS_SWITCH): Remove.
++ (WARN_CFLAGS, WERROR_CFLAGS): New macros.
++ (ALL_CFLAGS): Use new macros rather than old.
++ * process.c: Ignore -Wstrict-overflow to work around GCC bug 52904.
++ * 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-17 Glenn Morris <rgm@gnu.org>
+
+ * dired.c (Fsystem_users): Doc fix.
+
+ 2012-04-17 Dmitry Antipov <dmantipov@yandex.ru>
+
+ * dired.c (Fsystem_users, Fsystem_groups): New functions. (Bug#7900)
+ (syms_of_dired): Add them.
+
2012-04-16 Paul Eggert <eggert@cs.ucla.edu>
Fix minor alloc.c problems found by static checking.