From: K.Kosako Date: Thu, 23 Aug 2018 08:57:17 +0000 (+0900) Subject: remove unidefine __GNUC__ code for Clang X-Git-Tag: v6.9.0~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f98f8a67c0351358d65ea24a41d15af1741982ee;p=onig remove unidefine __GNUC__ code for Clang --- 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