This is the mail archive of the 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]

java/3635: "empty declaration" warning too broad

>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
>Originator:     Andrew Pimlott
>Release:        gcc version 3.0 (Debian)
Debian GNU/Linux "testing"
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 warning: An empty declaration is a deprecated feature that
+should not be used.
           void foo() { ; }
    1 warning

See code in description.

 >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 with subject
 "empty declaration deprecated".  Alexandre 
 Petit-Bianco <> replied confirming that
 it is probably a bug.]

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