Skip to content

C++11 extensions in header files #5561

@jia200x

Description

@jia200x

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

Metadata

Labels

Area: C++Area: C++ wrapperImpact: minorThe PR is small in size and might only require a quick look of a knowledgeable reviewerType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions