Skip to content

Commit cd749be

Browse files
committed
universalambigs: Add missing include file
This allows fixing two compiler warnings from clang++: src/ccutil/universalambigs.cpp:23:19: warning: no previous extern declaration for non-static variable 'kUniversalAmbigsFile' [-Wmissing-variable-declarations] src/ccutil/universalambigs.cpp:19019:18: warning: no previous extern declaration for non-static variable 'ksizeofUniversalAmbigsFile' [-Wmissing-variable-declarations] Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 41f50b1 commit cd749be

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ccutil/universalambigs.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Description: Data for a universal ambigs file that is useful for
44
// any language.
55
// Author: Ray Smith
6-
// Created: Mon Mar 18 11:26:00 PDT 2013
76
//
87
// (C) Copyright 2013, Google Inc.
98
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,9 +17,11 @@
1817
//
1918
///////////////////////////////////////////////////////////////////////
2019

20+
#include "universalambigs.h"
21+
2122
namespace tesseract {
2223

23-
extern const char kUniversalAmbigsFile[] = {
24+
const char kUniversalAmbigsFile[] = {
2425
'\166', '\062', '\012', '\047', '\047', '\040', '\042', '\040', '\061',
2526
'\012', '\140', '\047', '\040', '\042', '\040', '\061', '\012', '\047',
2627
'\140', '\040', '\042', '\040', '\061', '\012', '\342', '\200', '\230',
@@ -19016,6 +19017,6 @@ extern const char kUniversalAmbigsFile[] = {
1901619017
'\012',
1901719018
};
1901819019

19019-
extern const int ksizeofUniversalAmbigsFile = sizeof(kUniversalAmbigsFile);
19020+
const int ksizeofUniversalAmbigsFile = sizeof(kUniversalAmbigsFile);
1902019021

1902119022
} // namespace tesseract

0 commit comments

Comments
 (0)