[Linux-decnet-user] [patch] dnprogs 2.26: Remove an unsupported g++ option
Brought to you by:
chrissie_c,
ph3-der-loewe
|
From: Maciej W. R. <ma...@li...> - 2004-07-30 13:39:46
|
Hello, As of GCC 3.5, possibly 3.4 as well, "-Wstrict-prototypes" is not a supported option for C++ -- it does not make sense. The following patch fixes a 'command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++' GCC warning. Please apply. Maciej dnprogs-2.26-cxxflags.patch diff -up --recursive --new-file dnprogs-2.26.macro/Makefile.common dnprogs-2.26/Makefile.common --- dnprogs-2.26.macro/Makefile.common 2003-10-31 08:36:17.000000000 +0000 +++ dnprogs-2.26/Makefile.common 2004-06-05 17:07:42.000000000 +0000 @@ -111,7 +111,7 @@ endif CC=gcc CDEFS+=-D_XOPEN_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 INCLUDES=-I../libdap -I../include -CXXFLAGS+=-pipe -fdollars-in-identifiers -fsigned-char -Wstrict-prototypes -Wall -Wno-unused -Wno-uninitialized $(INCLUDES) -DVERSION=\"$(VERSION)\" $(CDEFS) $(SHADOWDEFS) $(PTSDEFS) $(DFLAGS) +CXXFLAGS+=-pipe -fdollars-in-identifiers -fsigned-char -Wall -Wno-unused -Wno-uninitialized $(INCLUDES) -DVERSION=\"$(VERSION)\" $(CDEFS) $(SHADOWDEFS) $(PTSDEFS) $(DFLAGS) CFLAGS +=-pipe -fsigned-char -Wstrict-prototypes -Wall -Wno-unused -Wno-uninitialized $(INCLUDES) -DVERSION=\"$(VERSION)\" $(CDEFS) $(SHADOWDEFS) $(PTSDEFS) $(DFLAGS) # Conditional for shared/static libs |