]> granicus.if.org Git - icu/commitdiff
ICU-20325 Fix warnings about unknown pragma when building with GCC in MSYS2 (Windows).
authorJeff Genovy <jefgen@microsoft.com>
Wed, 9 Jan 2019 01:56:40 +0000 (17:56 -0800)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Thu, 10 Jan 2019 22:31:47 +0000 (14:31 -0800)
icu4c/source/i18n/erarules.h
icu4c/source/i18n/number_decimfmtprops.h
icu4c/source/i18n/number_patternmodifier.h

index 4ed86408325ed77b356947da4494623b5b37b66b..8324b4c0df4efad24fc22a7ca412c84bb06cb8a9 100644 (file)
@@ -18,8 +18,10 @@ U_NAMESPACE_BEGIN
 // When building DLLs for Windows this is required even though no direct access leaks out of the i18n library.
 // See digitlst.h, pluralaffix.h, datefmt.h, and others for similar examples.
 #if U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_CYGWIN
+#if defined(_MSC_VER)
 // Ignore warning 4661 as LocalPointerBase does not use operator== or operator!=
 #pragma warning(suppress: 4661)
+#endif
 template class U_I18N_API LocalPointerBase<int32_t>;
 template class U_I18N_API LocalMemory<int32_t>;
 #endif
index f288b6e0d97f58ff151470de4dec79f600fbabc1..4819cbd924716fea21595d02b82880764fcc2c3f 100644 (file)
@@ -21,8 +21,10 @@ U_NAMESPACE_BEGIN
 // data member of CurrencyPluralInfoWrapper.
 // (When building DLLs for Windows this is required.)
 #if U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_CYGWIN
+#if defined(_MSC_VER)
 // Ignore warning 4661 as LocalPointerBase does not use operator== or operator!=
 #pragma warning(suppress: 4661)
+#endif
 template class U_I18N_API LocalPointerBase<CurrencyPluralInfo>;
 template class U_I18N_API LocalPointer<CurrencyPluralInfo>;
 #endif
index 9e6e33fccae0d30d2365f8c8be39f60c0faf70f6..89c5457c67b5a94957fd347a681213135e3949ef 100644 (file)
@@ -21,8 +21,10 @@ U_NAMESPACE_BEGIN
 // data member of AdoptingModifierStore.
 // (When building DLLs for Windows this is required.)
 #if U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_CYGWIN
+#if defined(_MSC_VER)
 // Ignore warning 4661 as LocalPointerBase does not use operator== or operator!=
 #pragma warning(suppress: 4661)
+#endif
 template class U_I18N_API LocalPointerBase<number::impl::AdoptingModifierStore>;
 template class U_I18N_API LocalPointer<number::impl::AdoptingModifierStore>;
 #endif