emacs/oldXMenu
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 *** empty log message *** 2000-09-21 15:08:55 +00:00
Activate.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
AddPane.c Modernize to C89, for better static checking. 2011-04-16 01:25:42 -07:00
AddSel.c Spelling fixes. 2011-11-19 01:18:31 -08:00
ChangeLog configure: new option --enable-gcc-warnings 2012-04-09 00:45:59 -07:00
ChgPane.c Nuke arch-tags. 2011-01-15 15:16:57 -08:00
ChgSel.c Nuke arch-tags. 2011-01-15 15:16:57 -08:00
copyright.h Nuke arch-tags. 2011-01-15 15:16:57 -08:00
Create.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
DelPane.c Nuke arch-tags. 2011-01-15 15:16:57 -08:00
DelSel.c Nuke arch-tags. 2011-01-15 15:16:57 -08:00
Destroy.c Modernize to C89, for better static checking. 2011-04-16 01:25:42 -07:00
Error.c Modernize to C89, for better static checking. 2011-04-16 01:25:42 -07:00
EvHand.c Modernize to C89, for better static checking. 2011-04-16 01:25:42 -07:00
FindPane.c Modernize to C89, for better static checking. 2011-04-16 01:25:42 -07:00
FindSel.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
InsPane.c Modernize to C89, for better static checking. 2011-04-16 01:25:42 -07:00
insque.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
InsSel.c Modernize to C89, for better static checking. 2011-04-16 01:25:42 -07:00
Internal.c Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
Locate.c Nuke arch-tags. 2011-01-15 15:16:57 -08:00
Makefile.in configure: new option --enable-gcc-warnings 2012-04-09 00:45:59 -07:00
Post.c Nuke arch-tags. 2011-01-15 15:16:57 -08:00
README *** empty log message *** 2007-02-27 03:34:25 +00:00
Recomp.c Nuke arch-tags. 2011-01-15 15:16:57 -08:00
SetAEQ.c Modernize to C89, for better static checking. 2011-04-16 01:25:42 -07:00
SetFrz.c Modernize to C89, for better static checking. 2011-04-16 01:25:42 -07:00
SetPane.c Nuke arch-tags. 2011-01-15 15:16:57 -08:00
SetSel.c Nuke arch-tags. 2011-01-15 15:16:57 -08:00
X10.h Spelling fixes. 2011-12-05 00:55:25 -08:00
XCrAssoc.c Nuke arch-tags. 2011-01-15 15:16:57 -08:00
XDelAssoc.c Modernize to C89, for better static checking. 2011-04-16 01:25:42 -07:00
XDestAssoc.c Modernize to C89, for better static checking. 2011-04-16 01:25:42 -07:00
XLookAssoc.c Nuke arch-tags. 2011-01-15 15:16:57 -08:00
XMakeAssoc.c Modernize to C89, for better static checking. 2011-04-16 01:25:42 -07:00
XMenu.h Spelling fixes. 2011-12-05 00:55:25 -08:00
XMenuInt.h Modernize to C89, for better static checking. 2011-04-16 01:25:42 -07:00

Most of the files in this directory are originally from the X11R2
XMenu library, distributed by MIT under the terms in the file copyright.h.

As of Release 2 of the X Window System, Version 11 from MIT, the XMenu
library is no longer supported.  It is not used in any software
supplied by MIT and its use is not encouraged.

In X11R1, oldXMenu/ was found in the lib/ directory of the X11 source;
but in X11R2 it was moved to contrib/.

The following files are from the X11 oldXMenu/ directory:

 Activate.c AddPane.c AddSel.c ChgPane.c ChgSel.c Create.c DelPane.c
 DelSel.c Destroy.c Error.c EvHand.c FindPane.c FindSel.c InsPane.c
 InsSel.c Internal.c Locate.c Post.c Recomp.c SetAEQ.c SetFrz.c
 SetPane.c SetSel.c XMenu.h XMenuInt.h (renamed from "XMenuInternal.h")

The following files are from the X11 oldX/ directory:

 X10.h XCrAssoc.c XDelAssoc.c XDestAssoc.c XLookAssoc.c XMakeAssoc.c

This code is used by Emacs in the absence of an X-toolkit.