Backport !4066 “Fix several GCC 14 warnings to please msys2-mingw32 CI” to glib-2-80
Trivial backport of GCC 14 fixes from !4066 (merged) to glib-2-80
. This doesn’t include the new CI policy for failures of msys2 CI, since that’s more of a main
thing.