useless class storage specifier in empty declaration

Posted by robUK on Stack Overflow See other posts from Stack Overflow or by robUK
Published on 2010-04-30T10:50:48Z Indexed on 2010/04/30 10:57 UTC
Read the original article Hit count: 192

Filed under:

Hello,

gcc 4.4.1 c89

I have the following code and I get a warning:

unless class storage specifier in empty declaration

static enum states
{
    ACTIVE,
    RUNNING,
    STOPPED,
    IDLE
}

However, if i remove the static keyword I don't get that warning.

I am compiling with the following flags:

-Wall -Wextra

Many thanks for any suggestions,

© Stack Overflow or respective owner

Related posts about c