diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-06-19 22:59:28 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-06-21 11:28:40 +0200 |
| commit | cd33f157c25d0abbcb68896ae35e23b76d20cbd3 (patch) | |
| tree | d18f14c74f85aef8dd6dded5771d0b4947c801fa /dissect.h | |
| parent | 9e34da46b99e1e43ed40ec019cce8c06c22eb3fa (diff) | |
| download | sparse-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.h | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -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 |
