This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/365: Turn off 'ANSI C++ forbids declaration `%D' with no type' warnings



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]