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
This currently gives a warning when it shouldn't:
void foo(const void *arg) { const char * const p1 = (const char * const)arg; }
./test.c:2:27: warning: cast to type 'const char *const ' will not preserve qualifiers [-Wcast-qualifiers] const char * const p1 = (const char * const)arg; ^
The text was updated successfully, but these errors were encountered:
That error is actually talking about the second const and happens for other types as well:
const
void foo() { const char p1 = (const char)1; // warning: cast to type 'char' will not preserve qualifiers [-Wcast-qualifiers] }
This is an warning that I added so it should either be clarified or removed altogether.
Sorry, something went wrong.
No branches or pull requests
This currently gives a warning when it shouldn't:
The text was updated successfully, but these errors were encountered: