Add a version check for duplicated-branches warning
Add a version check for duplicated-branches warning

The GHashTable code ignores the duplicated-branches GCC warning, but we
need to do a compiler and version check, as either non-GCC compatible
compilers, or older versions of GCC will warn about the unknown pragma
or diagnostic.

If we don't do this while turning warnings into error, we're going to
fail the build unnecessarily.

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