Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++11 extensions in header files #5560

Closed
jia200x opened this issue Jun 20, 2016 · 1 comment
Closed

C++11 extensions in header files #5560

jia200x opened this issue Jun 20, 2016 · 1 comment
Labels
State: duplicate State: The issue/PR is a duplicate of another issue/PR

Comments

@jia200x
Copy link
Member

jia200x commented Jun 20, 2016

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?

@LudwigKnuepfer LudwigKnuepfer added the State: duplicate State: The issue/PR is a duplicate of another issue/PR label Jun 20, 2016
@LudwigKnuepfer
Copy link
Member

go there instead: #5561

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
State: duplicate State: The issue/PR is a duplicate of another issue/PR
Projects
None yet
Development

No branches or pull requests

3 participants