]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix 'Dead nested assignment's from scan-build-10
authorOndřej Surý <ondrej@isc.org>
Wed, 25 Mar 2020 16:00:07 +0000 (17:00 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 25 Mar 2020 17:27:08 +0000 (18:27 +0100)
commit2beca482895eebbe7362277f700cb7376b1a6cfd
tree8be0860f7fbe6d03a0ee8c5c6f5670b61f8e3e41
parent6389f365275d05955cd2a9c5788de91995cf415c
Fix 'Dead nested assignment's from scan-build-10

The 3 warnings reported are:

os.c:872:7: warning: Although the value stored to 'ptr' is used in the enclosing expression, the value is never actually read from 'ptr'
        if ((ptr = strtok_r(command, " \t", &last)) == NULL) {
             ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

--

rpz.c:1117:10: warning: Although the value stored to 'zbits' is used in the enclosing expression, the value is never actually read from 'zbits'
        return (zbits &= x);
                ^        ~
1 warning generated.

--

openssleddsa_link.c:532:10: warning: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err'
        while ((err = ERR_get_error()) != 0) {
                ^     ~~~~~~~~~~~~~~~
1 warning generated.

(cherry picked from commit 262f087bcff969b6eca2ae0a71be4323a3c1729d)
(cherry picked from commit 138dded9d92de3fc966494862e8e38ded4467fc9)
lib/dns/openssleddsa_link.c
lib/dns/rpz.c