From 15635203f456e5c44c8f58c6c7576577ed755d67 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Fri, 22 Nov 2024 18:49:27 +0300 Subject: [PATCH] Fix msvc warning. --- src/ccutil/universalambigs.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ccutil/universalambigs.h b/src/ccutil/universalambigs.h index 83b0b298..d2e3c3a4 100644 --- a/src/ccutil/universalambigs.h +++ b/src/ccutil/universalambigs.h @@ -22,8 +22,10 @@ namespace tesseract { +#ifndef _MSC_VER #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Woverlength-strings" +#endif inline const char kUniversalAmbigsFile[] = { "v2\n" "'' \" 1\n" @@ -19035,7 +19037,9 @@ inline const char kUniversalAmbigsFile[] = { "iXl in 1\n" #endif }; +#ifndef _MSC_VER #pragma GCC diagnostic pop +#endif inline const int ksizeofUniversalAmbigsFile = sizeof(kUniversalAmbigsFile);