We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Implicit integer conversions to a shorter type, such as ulong to ushort, can cause compile failures.
Under -Werror=all, GCC 8.3 does not even allow uchar x[2] = {3,4}; (3 gets promoted to int, then converted to char)
-Werror=all
uchar x[2] = {3,4}
GCC 8.5 is less strict but often broken on main. GCC 12 is least strict, but effectively the default compiler of the Firedancer development team.
We can use CodeQL to detect all such implicit conversions without having to rely on compiler warnings.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Implicit integer conversions to a shorter type, such as ulong to ushort, can cause compile failures.
Under
-Werror=all
, GCC 8.3 does not even allowuchar x[2] = {3,4}
; (3 gets promoted to int, then converted to char)GCC 8.5 is less strict but often broken on main. GCC 12 is least strict, but effectively the default compiler of the Firedancer development team.
We can use CodeQL to detect all such implicit conversions without having to rely on compiler warnings.
The text was updated successfully, but these errors were encountered: