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

Unused typedef clang++ warning. #1668

Closed
syclik opened this issue Nov 4, 2015 · 0 comments
Closed

Unused typedef clang++ warning. #1668

syclik opened this issue Nov 4, 2015 · 0 comments
Labels
Milestone

Comments

@syclik
Copy link
Member

syclik commented Nov 4, 2015

With the new XCode, we are generating more warnings. To see this, run:

> ./runTests.py src/test/unit/lang/reject/reject_func_call_model_test.cpp
...
In file included from src/test/unit/lang/reject/reject_func_call_model_test.cpp:2:
src/test/test-models/good/lang/reject_func_call_model.hpp:26:28: warning: unused typedef
      'fun_return_scalar_t__' [-Wunused-local-typedef]
    typedef fun_scalar_t__ fun_return_scalar_t__;
                           ^
1 warning generated.

One way to fix this is to add -Wno-unused-local-typedef to the clang++ compiler options. Another would be to conditionally generate that typedef, but I think this one might be easier just silencing the new warning.
One fix is to add to clang++ options. Another would be to

@syclik syclik added this to the v2.8.0++ milestone Nov 4, 2015
@syclik syclik added the build label Nov 4, 2015
@syclik syclik closed this as completed in 0ead4b9 Nov 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant