public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/4080: GCC 3.0.1 doesn't give proper warnings on C++ style declarations
@ 2001-10-05 11:33 jsm28
  0 siblings, 0 replies; 2+ messages in thread
From: jsm28 @ 2001-10-05 11:33 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jorn, jsm28, nobody

Synopsis: GCC 3.0.1 doesn't give proper warnings on C++ style declarations

State-Changed-From-To: open->closed
State-Changed-By: jsm28
State-Changed-When: Fri Oct  5 11:33:06 2001
State-Changed-Why:
    If you want warnings about features not in your selected
    C standard version, you should use -pedantic.  The manual
    clearly documents that this C99 feature is accepted as an
    extension in C89 mode.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4080&database=gcc


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

* c/4080: GCC 3.0.1 doesn't give proper warnings on C++ style declarations
@ 2001-08-22  6:16 Jorn Baayen
  0 siblings, 0 replies; 2+ messages in thread
From: Jorn Baayen @ 2001-08-22  6:16 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4080
>Category:       c
>Synopsis:       GCC 3.0.1 doesn't give proper warnings on C++ style declarations
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 22 06:16:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.0.1
>Organization:
>Environment:
System: Linux orthanc 2.4.8-ac1 #3 Sun Aug 12 00:11:33 CDT 2001 i586 unknown
Architecture: i586
cpu: AMD K6-2 400
libc: GNU Libc 2.2.3
host: i586-pc-linux-gnu
build: i586-pc-linux-gnu
target: i586-pc-linux-gnu
configured with: ../gcc-3.0.1/configure --prefix=/usr --with-gxx-include-dir=/usr/include/g++ --enable-shared --enable-languages=c,c++,f77
>Description:
	When compiling a program like this, GCC doesn't warn about the C++
	style declarations in the C code without -Wall, and it does warn,
	but incorrectly, when -Wall is turned on.

>How-To-Repeat:
	Example code:
	int
	main (int argc, char **argv)
	{
		int bla;
		bla = 1;
		int bla2 = 2;

		return 1;
	}

	Output with -Wall:
	bla.c: In function `main':
	bla.c:6 warning: unused variable `bla2'
>Fix:
	None
>Release-Note:
>Audit-Trail:
>Unformatted:
 in C code.


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

end of thread, other threads:[~2001-10-05 11:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-05 11:33 c/4080: GCC 3.0.1 doesn't give proper warnings on C++ style declarations jsm28
  -- strict thread matches above, loose matches on Subject: below --
2001-08-22  6:16 Jorn Baayen

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).