Check GCC version before ignoring diagnostic message
Check GCC version before ignoring diagnostic message

The `alloc-size-larger-than` warning is available starting with GCC 7,
and using it in a pragma will generate a warning on older versions of
GCC.

endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib