gpioevents: Fix build with newer Clang
PR: 277422 (cherry picked from commit 42b117a4bd104246589149fa9f7b9b7ddc144f23)