Skip to content

Commit

Permalink
Fix msvc warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Nov 22, 2024
1 parent 63be216 commit 1563520
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ccutil/universalambigs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 1563520

Please sign in to comment.