]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove duplicate DE_CONST macro
authorOndřej Surý <ondrej@sury.org>
Tue, 5 Oct 2021 14:08:24 +0000 (16:08 +0200)
committerOndřej Surý <ondrej@sury.org>
Tue, 5 Oct 2021 20:13:29 +0000 (22:13 +0200)
Both <isccc/util.h> and <isc/util.h> defined DE_CONST() macro.  As
<isccc/util.h> header includes <isc/util.h>, remove the macro from
<isccc/util.h> header.

lib/isccc/include/isccc/util.h

index 2768522f62c2ea672482e2ce2b8a01242052cf47..800b8041ba0d5b1ed4297bc3c394c90efe50df94 100644 (file)
                (r).rend = (r).rstart + strlen(s); \
        } while (0)
 
-/*%
- * Use this to remove the const qualifier of a variable to assign it to
- * a non-const variable or pass it as a non-const function argument ...
- * but only when you are sure it won't then be changed!
- * This is necessary to sometimes shut up some compilers
- * (as with gcc -Wcast-qual) when there is just no other good way to avoid the
- * situation.
- */
-#define DE_CONST(konst, var)           \
-       do {                           \
-               union {                \
-                       const void *k; \
-                       void *      v; \
-               } _u;                  \
-               _u.k = konst;          \
-               var = _u.v;            \
-       } while (0)
-
 #endif /* ISCCC_UTIL_H */