From f98f8a67c0351358d65ea24a41d15af1741982ee Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Thu, 23 Aug 2018 17:57:17 +0900 Subject: [PATCH] remove unidefine __GNUC__ code for Clang --- src/unicode.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/unicode.c b/src/unicode.c index ad037a5..ec2f3af 100644 --- a/src/unicode.c +++ b/src/unicode.c @@ -700,19 +700,6 @@ onigenc_egcb_is_break_position(OnigEncoding enc, UChar* p, UChar* prev, } -/* - Undefine __GNUC__ for Escape warnings in Clang. - -./unicode_property_data.c:26730:44: warning: static variable - 'unicode_prop_name_pool_contents' is used in an inline function with - external linkage [-Wstatic-in-inline] - register const char *s = o + unicode_prop_name_pool; -*/ - -#ifdef __clang__ -#undef __GNUC__ -#endif - #ifdef USE_UNICODE_PROPERTIES #include "unicode_property_data.c" #else -- 2.40.0