I'm getting few warnings-as-errors when building the latest version from git
(using Debian 10 amd64 with gcc 8.3.0).
I wouldn't worry about these. We typically don't bother to pacify older
GCC versions as they typically generate false alarms that are not worth
worrying about.
needs to be adjusted as far as Clang versions go. Do you happen to know
which Clang versions support that option?
Also, since 'configure' is already testing for which warning options
work by invoking the compiler directly, perhaps this part of
gnulib-common.m4 could leverage off that work rather than trying to
hardcode which compilers support which options.
I'll cc this to bug-gnulib for further comment there.