INSTALL: Mention --enable-gcc-warnings.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 17 Apr 2012 21:40:07 +0000 (14:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 17 Apr 2012 21:40:07 +0000 (14:40 -0700)
ChangeLog
INSTALL

index 6020d15..1863319 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@
        (PKG_CHECK_MODULES, C_SWITCH_X_SITE): Use -isystem rather than -I,
        when including system files with GCC.
        * etc/NEWS: Mention --enable-gcc-warnings.
+       * INSTALL (DETAILED BUILDING AND INSTALLATION): Likewise.
        * lib/Makefile.am (AM_CFLAGS): New macro.
        * m4/manywarnings.m4, m4/warnings.m4: New files, from gnulib.
 
diff --git a/INSTALL b/INSTALL
index 1e08448..1df686a 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -317,6 +317,12 @@ Use --with-wide-int to implement Emacs values with the type 'long long',
 even on hosts where a narrower type would do.  With this option, on a
 typical 32-bit host, Emacs integers have 62 bits instead of 30.
 
+Use --enable-gcc-warnings to enable compile-time checks that warn
+about possibly-questionable C code.  This is intended for developers
+and is useful with GNU-compatible compilers.  On a recent GNU system
+there should be no warnings; on older and on non-GNU systems the
+generated warnings may still be useful.
+
 The `--prefix=PREFIXDIR' option specifies where the installation process
 should put emacs and its data files.  This defaults to `/usr/local'.
 - Emacs (and the other utilities users run) go in PREFIXDIR/bin