translate-c: casting away const fails #4044
Labels
bug
Observed behavior contradicts documented or intended behavior
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
translate-c
C to Zig source translation feature (@cImport)
Milestone
Motivation: Wayland add_listener functions cast their struct of function pointer arguments to
void (**)(void)
before passing them to another function, which then stores it in a const field and never modifies through it.The text was updated successfully, but these errors were encountered: