mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 09:52:27 -04:00
don't use the ERR macro as GCC 7 only does a partial static analysis which generates false positives for fallthrough. [RT #46115]
This commit is contained in:
parent
9b3fc207df
commit
0698ad8503
1 changed files with 7 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue