]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
suppress cppcheck warning: unreadVariable on union
authorMark Andrews <marka@isc.org>
Tue, 1 Oct 2019 10:05:38 +0000 (20:05 +1000)
committerMark Andrews <marka@isc.org>
Tue, 1 Oct 2019 23:25:00 +0000 (09:25 +1000)
lib/lwres/getipnode.c

index e7e9fc399ca9baa0c57725f0b5e70b7fec1a5369..c2110756d0226695e81760ea6dc6ce9e31c16972 100644 (file)
@@ -240,6 +240,7 @@ lwres_getipnodebyname(const char *name, int af, int flags, int *error_num) {
                        char *deconst_name;
                } u;
 
+               /* cppcheck-suppress unreadVariable */
                u.const_name = name;
                if (v4 == 1 && af == AF_INET6) {
                        strcpy(mappedname, "::ffff:");
@@ -369,6 +370,7 @@ lwres_getipnodebyaddr(const void *src, size_t len, int af, int *error_num) {
         * with our own, cleanly discarding the const is the easiest
         * thing to do.
         */
+       /* cppcheck-suppress unreadVariable */
        u.konst = src;
 
        /*