From: Steven R. Loomis Date: Wed, 14 Sep 2016 20:58:08 +0000 (+0000) Subject: ICU-12705 disable opt on vs2015 X-Git-Tag: milestone-59-0-1~221 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de23e2458b3f26eb0101a989a99955215113ac14;p=icu ICU-12705 disable opt on vs2015 workaround for failure on 32 bit release with vs2015update3 X-SVN-Rev: 39224 --- diff --git a/icu4c/source/common/uloc_tag.c b/icu4c/source/common/uloc_tag.c index acb4d4f0c46..074979e3331 100644 --- a/icu4c/source/common/uloc_tag.c +++ b/icu4c/source/common/uloc_tag.c @@ -19,6 +19,17 @@ #include "ulocimp.h" #include "uassert.h" + + +/** + * Ticket #12705 - VS2015 update 3, 32 bit release mode casues this file to have failures. + * As a workaround, we will turn off optimization just for this file. + */ +#if (defined(_MSC_VER) && (_MSC_VER >= 1900)) +# pragma optimize("", off) +#endif + + /* struct holding a single variant */ typedef struct VariantListEntry { const char *variant;