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
memcpy "discards qualifiers" warning #578
Comments
PR #581 revamped the implementation of generic functions extensively. This issue no longer seems to appear. |
I also can no longer repro this; thanks! |
Machiry
pushed a commit
to Machiry/checkedc-clang
that referenced
this issue
Jan 21, 2022
* The function `specialCaseVarIntros` incorrectly identified void pointers as vararg parameters. They were still constrained to be WILD, so it did not affect the solution, but it could cause the wrong reason to appear in the root cause analysis. * Change constraint generation for `void*` parameters so that they generate a single root cause instead of two. This makes the root cause analysis more useful for programs using large amounts of void pointers. * Also verify the number of pointers affected in the `root_cause.c` test. Co-authored-by: Aaron Eline <aaron@correctcomputation.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the following example, the compiler gives a "discards qualifiers" warning on src:
The warning:
Why is this warning occurring? There's definitely a
const T
right there in the listing of src.Occurs on Linux, built from
master
this evening.The text was updated successfully, but these errors were encountered: