From de23e2458b3f26eb0101a989a99955215113ac14 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Wed, 14 Sep 2016 20:58:08 +0000 Subject: [PATCH] ICU-12705 disable opt on vs2015 workaround for failure on 32 bit release with vs2015update3 X-SVN-Rev: 39224 --- icu4c/source/common/uloc_tag.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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;