When building gnupg-2.2.13 with gcc9 in openSUSE Tumbleweed, we get this error:
[ 83s] In file included from dns-stuff.c:57: [ 83s] dns-stuff.c: In function 'libdns_res_open': [ 83s] dns.h:1058:24: error: lvalue required as unary '&' operand [ 83s] 1058 | #define dns_opts(...) (&dns_quietinit((struct dns_options)DNS_OPTS_INIT(__VA_ARGS__))) [ 83s] | ^ [ 83s] dns-stuff.c:719:23: note: in expansion of macro 'dns_opts' [ 83s] 719 | dns_opts (.socks_host = &libdns.socks_host, [ 83s] | ^~~~~~~~
It looks like it complains about overriding the initializer list in dns_opt, see bugs in openSUSE [0] and gcc [1] bugzillas. Builds fine with the patch in [0] but it would be better to fix it instead of skipping some diagnostic pragmas.
[0] https://bugzilla.suse.com/show_bug.cgi?id=1121223
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88766