-
Notifications
You must be signed in to change notification settings - Fork 56
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
CI: Enable all warnings on all compilers and turn them into errors #33
Comments
But keep them as just warnings when not in the CI, that way users will not get errors if they upgrade a compiler that introduces some new warnings. |
I have checked on that: I'll create a list with all compile flags, I would suggest / recommend. We can decide then, what we use and what not. As I said, I would probably use all that are either regarding to C++ or x64/x86 architectures. (Are we even supporting x32? and / or other ones like arm64/aarch64/armV7 and so on?). |
I havent looked for MSVC yet. Will do that probably after we implemented the flags for linux / gcc. We have to do both seperately anyway. |
I have looked into it. There are many warning that we shouldn't enable, like -Wdouble-promotions, because it warns of a problem that occurs on really old 32bit pcs. So I wouldn't go with -w (wich enables all warnings). I created a list and will will go into that later.
Needs testing:
And some analysing (haven't used that yet, can't tell if it's to be used at compiletime or just for checking, like clang-tidy does):
Hope that works. I have not included warnings, that are turned on by -Wall and -Wextra. Also I have included no C related options. |
replaced by #182. |
That way the CI will fail if any compiler issues a warning, so that we can catch any regressions.
The text was updated successfully, but these errors were encountered: