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

Add c.duplicate_declaration to warning options. #13173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

julien-lecomte
Copy link

I have a project with many files that are similar to C syntax. Each file is compiled as if it was standalone program. For this reason, some variables are documented in what would be the equivalent of a .c file.

However, some of those variables have the same name, but not necessarily the same purpose / documentation. For this reason, I get many warnings: Duplicate C declaration, also defined at.

I would like to neither move them to a common file, nor make their documentation the same. Meanwhile, I would also like to keep the "-W" for my CI.

My current solution was creating a logging.Filter to disable the warning, but I think that an option to suppress_warnings would be beneficial to many users.

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.

1 participant