Skip to content

Silence Clang -Wcast-align false-positives

Clang performs the -Wcast-align analysis before code generation and optimizations, so the compiler cannot see that the alignment is actually guaranteed to be sufficient for these casts. Silence the warning by adding casts to void* and/or changing the types of some variables.

Merge request reports