Permalink
Browse files

ignore warning of return-type-c-linkage in ICU header for clang

  • Loading branch information...
1 parent 9fab2ee commit fe61733bd066ed68aff864dc9336e3d0aa825029 @Watson1978 Watson1978 committed Jul 17, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 icu-1060/unicode/unistr.h
View
@@ -3247,6 +3247,12 @@ class U_COMMON_API UnicodeString : public Replaceable
} fUnion;
};
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunknown-pragmas"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
+#endif
/**
* Create a new UnicodeString with the concatenation of two others.
*
@@ -3258,6 +3264,11 @@ class U_COMMON_API UnicodeString : public Replaceable
U_COMMON_API UnicodeString U_EXPORT2
operator+ (const UnicodeString &s1, const UnicodeString &s2);
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#pragma clang diagnostic pop
+#endif
+
//========================================
// Inline members
//========================================

0 comments on commit fe61733

Please sign in to comment.