aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dissect.h
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-06-19 22:59:28 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-06-21 11:28:40 +0200
commitcd33f157c25d0abbcb68896ae35e23b76d20cbd3 (patch)
treed18f14c74f85aef8dd6dded5771d0b4947c801fa /dissect.h
parent9e34da46b99e1e43ed40ec019cce8c06c22eb3fa (diff)
downloadsparse-dev-cd33f157c25d0abbcb68896ae35e23b76d20cbd3.tar.gz
dissect: use built_in_ident() instead of MK_IDENT()
The motivation for this patch was to allow sparse to be compiled with clang which doesn't like static initialization of flexible array members which is used in MK_IDENT(). But also, there is no enough good justifications here for not creating the identifiers the normal way with built_in_ident(). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Acked-by: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'dissect.h')
-rw-r--r--dissect.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/dissect.h b/dissect.h
index 3b72b898..664736ce 100644
--- a/dissect.h
+++ b/dissect.h
@@ -26,15 +26,4 @@ struct reporter
extern void dissect(struct symbol_list *, struct reporter *);
-#define MK_IDENT(s) ({ \
- static struct { \
- struct ident ident; \
- char __[sizeof(s)]; \
- } ident = {{ \
- .len = sizeof(s)-1, \
- .name = s, \
- }}; \
- &ident.ident; \
-})
-
#endif