This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/365: Turn off 'ANSI C++ forbids declaration `%D' with no type' warnings
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/365: Turn off 'ANSI C++ forbids declaration `%D' with no type' warnings
- From: kherron at newsguy dot com
- Date: 30 Jun 2000 04:02:00 -0000
- Reply-To: kherron at newsguy dot com
- Resent-Cc: gcc-prs at gcc dot gnu dot org, jason at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, kherron@newsguy.com
>Number: 365
>Category: c++
>Synopsis: Turn off 'ANSI C++ forbids declaration `%D' with no type' warnings
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 29 21:06:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Kenneth Herron
>Release: egcs-2.95.2
>Organization:
>Environment:
Solaris 2.6, Solaris 7
>Description:
Solaris's X headers (/usr/openwin/include) contain numerous
declarations with implicit int return type. -fpermissive
allows c++ code to use these headers, but the number of
warnings (168 in Xlib.h alone) is a real burden. Some way
to turn off these warnings would be wonderful.
The description for the -Wreturn-type flag suggests that
-Wno-return-type should turn off these warnings, but it
doesn't.
>How-To-Repeat:
echo '#include <X11/Intrinsic.h>' > foo.C
g++ -I/usr/openwin/include -c foo.C
>Fix:
Change -Wno-return-type to turn off these warnings?
Add /usr/openwin/include to the set of system header
directories on Solaris?
>Release-Note:
>Audit-Trail:
>Unformatted: