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

shut up clang warnings #4297

Merged
merged 1 commit into from Dec 1, 2020
Merged

shut up clang warnings #4297

merged 1 commit into from Dec 1, 2020

Conversation

thufschmitt
Copy link
Member

  • Fix some class/struct discrepancies
  • Explicit the overloading of run in the Cmd* classes
  • Ignore a warning in the generated lexer

- Fix some class/struct discrepancies
- Explicit the overloading of `run` in the `Cmd*` classes
- Ignore a warning in the generated lexer
@edolstra edolstra merged commit 5a6ddb3 into NixOS:master Dec 1, 2020
@edolstra edolstra deleted the fix-clang-warnings branch December 1, 2020 14:48
@@ -12,6 +12,8 @@


%{
#pragma clang diagnostic ignored "-Wunneeded-internal-declaration"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this causes a gcc warning:

src/libexpr/lexer.l:15: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
   15 | #pragma clang diagnostic ignored "-Wunneeded-internal-declaration"
      | 

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obviously 😒

I've opened #4300 to fix that one

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

Successfully merging this pull request may close these issues.

None yet

2 participants