public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/3635: "empty declaration" warning too broad
@ 2001-07-10  9:16 pimlott
  0 siblings, 0 replies; 3+ messages in thread
From: pimlott @ 2001-07-10  9:16 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3635
>Category:       java
>Synopsis:       "empty declaration" warning too broad
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 10 09:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Pimlott
>Release:        gcc version 3.0 (Debian)
>Organization:
>Environment:
Debian GNU/Linux "testing"
>Description:
I am fairly new to java and gcj, and I am confused by the warning
generated by

    class Test
    {
        void foo() { ; }
    }

    % gcj-3.0 -C -Wall Test.java
    Test.java:3: warning: An empty declaration is a deprecated feature that
+should not be used.
           void foo() { ; }
                           ^
    1 warning

>How-To-Repeat:
See code in description.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 >From what I can find (mainly, the bug report gcj/295), this warning
 is supposed to be about semicolons after inner classes.  The JLS
 second edition says nothing bad about empty statements, so I hope
 this is a mistake.
 
 [This was originally sent to java@gcc.gnu.org with subject
 "empty declaration deprecated".  Alexandre 
 Petit-Bianco <apbianco@cygnus.com> replied confirming that
 it is probably a bug.]


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

* Re: java/3635: "empty declaration" warning too broad
@ 2002-01-04 18:56 rodrigc
  0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2002-01-04 18:56 UTC (permalink / raw)
  To: apbianco, gcc-bugs, gcc-prs, java-prs, pimlott

Synopsis: "empty declaration" warning too broad

State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Fri Jan  4 18:56:35 2002
State-Changed-Why:
    Patch applied.
    http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00885.html

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3635


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

* Re: java/3635: "empty declaration" warning too broad
@ 2001-07-12 15:47 apbianco
  0 siblings, 0 replies; 3+ messages in thread
From: apbianco @ 2001-07-12 15:47 UTC (permalink / raw)
  To: apbianco, gcc-bugs, gcc-prs, java-prs, nobody, pimlott

Synopsis: "empty declaration" warning too broad

Responsible-Changed-From-To: unassigned->apbianco
Responsible-Changed-By: apbianco
Responsible-Changed-When: Thu Jul 12 15:47:34 2001
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->feedback
State-Changed-By: apbianco
State-Changed-When: Thu Jul 12 15:47:34 2001
State-Changed-Why:
    I attached a patch.

http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=3635&database=gcc


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

end of thread, other threads:[~2002-01-05  2:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-10  9:16 java/3635: "empty declaration" warning too broad pimlott
2001-07-12 15:47 apbianco
2002-01-04 18:56 rodrigc

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