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

-Wsign-conversion is redundant #76

Open
benjamin051000 opened this issue Jan 5, 2024 · 1 comment
Open

-Wsign-conversion is redundant #76

benjamin051000 opened this issue Jan 5, 2024 · 1 comment

Comments

@benjamin051000
Copy link

benjamin051000 commented Jan 5, 2024

-Wsign-conversion # warn on sign conversions

According to Clang diagnostics (https://clang.llvm.org/docs/DiagnosticsReference.html#wconversion), -Wconversion controls -Wsign-conversion. This is the same as GCC (https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wsign-conversion), although this only applies to the ${CLANG_WARNINGS} section.

I haven't tried removing -Wsign-conversion and seeing if it still catches it, but perhaps someone else can to verify this behavior. Per the spec, it should be a redundant flag.

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

1 participant