Unverified Commit 2bc098b8 authored by Raul Tambre's avatar Raul Tambre Committed by GitHub
Browse files

[clang][Sema] Don't issue -Wcast-function-type-mismatch for enums with a...

[clang][Sema] Don't issue -Wcast-function-type-mismatch for enums with a matching underlying type (#87793)

Enums are passed as their underlying integral type so they're ABI compatible if the size matches.
Useful with C APIs that pass user-controlled values to callbacks that can be made type safe by using enumerations (e.g. GStreamer).

Discovered internally in some code after 999d4f84.
parent a088c61d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment