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

Generated global variables are not ISO C99 Conformant #10

Open
xanderdunn opened this issue Apr 13, 2015 · 1 comment
Open

Generated global variables are not ISO C99 Conformant #10

xanderdunn opened this issue Apr 13, 2015 · 1 comment

Comments

@xanderdunn
Copy link

I have the package "cpm-google-test" installed, and it breaks my build with -Werror because it looks like a macro with hyphens in it is being generated:

<command line>:2:16: error: ISO C99 requires whitespace after the macro name [-Werror,-Wc99-extensions]
#define CPM_CPM-GOOGLE-TEST_NS github_iauns_cpmgoogletest_102

I didn't follow the trail to find out who was defining it, so I could very well be wrong who's at fault. If possible, could we change those hyphens to underscores so that C99 is happy?

@iauns
Copy link
Owner

iauns commented Jun 29, 2015

Could these hyphens be coming from a local definition of google test in a makefile? Something akin to CPM_AddModule("cpm-google-test"...) instead of CPM_AddModule("cpm_google_test", ...) . I'll give that module a look over just in case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants