Skip to content

C++11 extensions in header files #5560

Closed
@jia200x

Description

Hi.

I'm having some warnings when trying to compile C++ RIOT with some header files.
For example, I added "net/netdev2.h" in riot_and_cpp and example and got errors like this:

/home/jialamos/RIOT/sys/include/net/netopt.h:225:17: error: comma at end of enumerator list [-Werror=pedantic]
     NETOPT_NUMOF,

Commas at the end of enumerator list are valid in C99, but seems not to be valid when linking with G++ and pedantic flag.
I'm using Gcc 4.8.4.

Anyone else with a problem like this?

Metadata

Assignees

No one assigned

    Labels

    State: duplicateState: The issue/PR is a duplicate of another issue/PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions