Fix a -Wunused-local-typedefs warning