build: Disable unused-local-typedefs warning

Too many false positives in older GLib versions with GCC >= 4.8.
tests/matrix: Remove an unnecessary `return`