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

Reduce Compilation Warnings #4825

Open
Nerixyz opened this issue Sep 17, 2023 · 2 comments
Open

Reduce Compilation Warnings #4825

Nerixyz opened this issue Sep 17, 2023 · 2 comments

Comments

@Nerixyz
Copy link
Contributor

Nerixyz commented Sep 17, 2023

When compiling Chatterino, there are a few warnings. These depend on the compiler and configuration used, so I'd like to collect them all here and have some kind of tracking issue.

If you're fixing a warning, please do one category (e.g. unused variables) or subcategory or file at a time (like #4818).

I'll start with Qt 6 on Windows with MSVC. Note that C4100, C4458, and C4267 are explicitly disabled in CMake.

Update: MSVC doesn't report any warnings now.


clang-cl reports the following warnings:

missing-field-initializers

This is really noisy, especially for Emote, but easy to fix.

unused-function

unused-variable

unused-but-set-variable

unused-lambda-capture

switch

This warning is off on non-MSVC builds. I'd argue it should be turned on.

unused-private-field

tautological-constant-out-of-range-compare

  • miniaudio.h: result of comparison of constant 2147483647 with expression of type 'ma_seek_origin' is always false
@Nerixyz Nerixyz added the issue-report An issue reported by a user. label Sep 17, 2023
@Felanbird Felanbird added enhancement and removed issue-report An issue reported by a user. labels Sep 17, 2023
@Mm2PL
Copy link
Collaborator

Mm2PL commented Apr 15, 2024

We should not even care about "Shadowing class variables (C4458)". We always use this-> anyway.

@Nerixyz
Copy link
Contributor Author

Nerixyz commented Apr 15, 2024

We should not even care about "Shadowing class variables (C4458)". We always use this-> anyway.

Yes, we don't care about that. It was disabled in #5137. I updated the list.

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