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

Compiling Unity with Clang's '-Weverything' and '-Werror' #41

Closed
shreyasbharath opened this issue Jun 7, 2013 · 2 comments
Closed

Compiling Unity with Clang's '-Weverything' and '-Werror' #41

shreyasbharath opened this issue Jun 7, 2013 · 2 comments

Comments

@shreyasbharath
Copy link

Clang throws a number of warnings around tests using unity_fixture.h

An example is -
error: no previous extern declaration for non-static variable 'TEST_GROUP_GroupName' [-Werror,-Wmissing-variable-declarations]

It is because the TEST_GROUP() macro declares a global variable that is not used anywhere. I'll have a go at fixing this and submit a pull request.

@jsalling
Copy link
Contributor

It looks like this and similar issues were fixed in 3399bba and 2107e70. (updated commit hashes)
The Fixture compiles with clang -Weverything today. However, there will probably always be some remaining warnings in Unity. For instance, -Wpadded depending on the platform, a few undeclared extern variables, and -Wcovered-switch-default.
@mvandervoord Will you close?

@mvandervoord
Copy link
Member

Thanks for checking on this. :)

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

No branches or pull requests

3 participants