This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
[Patch] Don't specify -Wmissing-declarations when compiling a C++ file
- From: "Max Bowsher" <maxb at ukf dot net>
- To: <cygwin-apps at cygwin dot com>
- Date: Sun, 22 Jun 2003 20:53:12 +0100
- Subject: [Patch] Don't specify -Wmissing-declarations when compiling a C++ file
2003-06-22 Max Bowsher <maxb@ukf.net>
* Makefile.am (AM_CXXFLAGS): Remove -Wmissing-declarations, which is
a
C-only warning.
Index: Makefile.am
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/Makefile.am,v
retrieving revision 2.29
diff -u -p -r2.29 Makefile.am
--- Makefile.am 29 Mar 2003 10:15:57 -0000 2.29
+++ Makefile.am 22 Jun 2003 19:47:39 -0000
@@ -25,10 +25,9 @@ SUBDIRS = bz2lib zlib libgetopt++ @RSYNC
## DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
##AM_CFLAGS = -Werror -Wall -Winline -Wpointer-arith
-AM_CFLAGS = -Werror -Wall -Wpointer-arith \
- -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
- -Wmissing-declarations -Wcomments
-AM_CXXFLAGS = $(AM_CFLAGS)
+AM_CXXFLAGS = -Werror -Wall -Wpointer-arith -Wcomments \
+ -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
+AM_CFLAGS = $(AM_CXXFLAGS) -Wmissing-declarations
WINDRES := @WINDRES@
Max.