]> granicus.if.org Git - onig/commitdiff
remove unidefine __GNUC__ code for Clang
authorK.Kosako <kosako@sofnec.co.jp>
Thu, 23 Aug 2018 08:57:17 +0000 (17:57 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Thu, 23 Aug 2018 08:57:17 +0000 (17:57 +0900)
src/unicode.c

index ad037a536440d520ab7e5bc4d351761cff537192..ec2f3af14dcf639fcc0bda4697a1872bc1413173 100644 (file)
@@ -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