public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: request: warning messages
@ 1999-01-29 23:22 N8TM
  0 siblings, 0 replies; 13+ messages in thread
From: N8TM @ 1999-01-29 23:22 UTC (permalink / raw)
  To: sts, egcs

In a message dated 1/29/99 12:40:34 PM Pacific Standard Time, sts@ica1.uni-
stuttgart.de writes:

<< It seems that at least in the egcs-19990124 snapshot the 
 implicit-int warning of the egcs-1.1.1 release got promoted to 
 an error. I get this error (on solaris 2.7, but not on DUNIX 4.0) 
 even without specification of '-pedantic' and even if it occurs in 
 headers included as  extern "C" {} >>
FWIW, I am seeing some testsuite failures on cygwin/NT, where g++ refuses to
compile test cases when the declaration is on a separate line:

int
main();




^ permalink raw reply	[flat|nested] 13+ messages in thread
* request: warning messages
@ 1999-01-31 23:58 Stefan Schwarzer
  0 siblings, 0 replies; 13+ messages in thread
From: Stefan Schwarzer @ 1999-01-31 23:58 UTC (permalink / raw)
  To: egcs

Trying to figure out the docs in the info to egcs-1.1.1
I am trying to suppress pages of warning messages arising in some slightly 
incompatible X-headers on our system which declare functions to be 
implicitly of 'int' return type. 

Short of requesting each single warning message separately, i was
hoping that the following command line would result in more or less 
all warnings (forget about ansi stuff for the moment) MINUS the 
implicit int warnings:
  
g++ -c life.cc  -g -W -Wall -Wno-implicit-int -MMD -frepo -I/usr/dt/include -I/usr/openwin/include

However, egcs-1.1.1 (with new-abi, on solaris 2.5.1/2.7, DUNIX 3.2,
4.0), starts the output with: 
  
/usr/openwin/include/X11/Xlib.h:2063: warning: return-type of `XSetTransientForH
int' defaults to `int'
/usr/openwin/include/X11/Xlib.h:2071: warning: return-type of `XActivateScreenSa
ver' defaults to `int'
[...]

Could it be considered in future releases to respect the order of the
-W... specifications so that -Wno-implicit-int would take precedence?
Or did I just misinterprete the doc's completely?

Thanks - Stefan. 

-- 
Stefan Schwarzer                office:  +49-(0)711-685-7606   fax: x-3658 
Uni Stuttgart, ICA 1            e-mail:          sts@ica1.uni-stuttgart.de
Pfaffenwaldring 27              pgp public key available on request/finger 
70569 Stuttgart, Germany             http://www.ica1.uni-stuttgart.de/~sts

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~1999-01-31 23:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <13990.15633.236566.585563.cygnus.egcs@boa.ica1.uni-stuttgart.de>
1999-01-21  1:06 ` request: warning messages Jason Merrill
1999-01-21  1:50   ` Jeffrey A Law
1999-01-31 23:58     ` Jeffrey A Law
1999-01-29 10:55   ` Stefan Schwarzer
1999-01-29 12:59     ` Joe Buck
1999-01-29 14:56       ` Gerald Pfeifer
1999-01-29 15:07       ` Martin v. Loewis
1999-01-29 15:30         ` Joe Buck
1999-01-29 15:51           ` Jeffrey A Law
1999-01-30  1:50     ` Andris Pavenis
1999-01-31 23:58   ` Jason Merrill
1999-01-29 23:22 N8TM
1999-01-31 23:58 Stefan Schwarzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).