Open drakenclimber opened 9 months ago
GCC complains about storing a pointer to a local stack variable in a struct that is used outside of _gen_bpf_build_bpf()
. While the state
struct is used after _gen_bpf_build_bpf()
returns, the state->arch
variable is not.
So we should clean this up, but it's not currently being used improperly.
Triage: this seems already fixed by commit 31583fab12370da984785cd16ceb8f031c94ae76.
FWIW, I'm not seeing this either with HEAD at 2847f10dddca72167309c04cd09f326fd3b78e2f and GCC v14.2.1, @drakenclimber are you still seeing this warning?