From 78c505b4cef4edfd787479b192d74ff047470531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 17 Apr 2019 14:39:41 +0200 Subject: [PATCH] Remove dup DE_CONST #define --- lib/isccc/include/isccc/util.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/isccc/include/isccc/util.h b/lib/isccc/include/isccc/util.h index 815e70c3f4..39d8a24955 100644 --- a/lib/isccc/include/isccc/util.h +++ b/lib/isccc/include/isccc/util.h @@ -202,19 +202,4 @@ (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 */