From: Cyrill Gorcunov Date: Tue, 10 Dec 2013 07:09:49 +0000 (+0400) Subject: iflag: Don't use c99 array initialization X-Git-Tag: nasm-2.11.05~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d578b511c936f35468f8c783db1237982ce3c0e1;p=platform%2Fupstream%2Fnasm.git iflag: Don't use c99 array initialization It's sad but not all compilers support c99 features, so drop off IFLAG_INIT helper. Reported-by: H. Peter Anvin Signed-off-by: Cyrill Gorcunov --- diff --git a/iflag.h b/iflag.h index 583e68a..a3d9736 100644 --- a/iflag.h +++ b/iflag.h @@ -13,8 +13,6 @@ int ilog2_32(uint32_t v); #define IF_GENBIT(bit) (UINT32_C(1) << (bit)) -#define IFLAG_INIT (iflag_t){ .field = { 0 }, } - static inline unsigned int iflag_test(const iflag_t *f, unsigned int bit) { unsigned int index = bit / 32; @@ -145,7 +143,9 @@ static inline int iflag_cmp_cpu_level(const iflag_t *a, const iflag_t *b) static inline iflag_t _iflag_pfmask(const iflag_t *a) { - iflag_t r = IFLAG_INIT; + iflag_t r; + + iflag_clear_all(&r); if (iflag_test(a, IF_CYRIX)) iflag_set(&r, IF_CYRIX);