diff --git a/lib/irs/getnameinfo.c b/lib/irs/getnameinfo.c index c5f987dd75..6e26e278fd 100644 --- a/lib/irs/getnameinfo.c +++ b/lib/irs/getnameinfo.c @@ -319,8 +319,13 @@ getnameinfo(const struct sockaddr *sa, IRS_GETNAMEINFO_SOCKLEN_T salen, case DNS_R_NOVALIDKEY: case DNS_R_NOVALIDDS: case DNS_R_NOVALIDSIG: - ERR(EAI_INSECUREDATA); - /* NOTREACHED */ + /* + * Don't use ERR as GCC 7 wants to raise a + * warning with ERR about possible falling + * through which is impossible. + */ + result = EAI_INSECUREDATA; + goto cleanup; default: ERR(EAI_FAIL); }