Commit 0698ad85 authored by Mark Andrews's avatar Mark Andrews
Browse files

don't use the ERR macro as GCC 7 only does a partial static analysis which...

don't use the ERR macro as GCC 7 only does a partial static analysis which generates false positives for fallthrough. [RT #46115]
parent 9b3fc207
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment