Skip to content

Commit

Permalink
universalambigs: Add missing include file
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
stweil committed May 2, 2019
1 parent 41f50b1 commit cd749be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ccutil/universalambigs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Description: Data for a universal ambigs file that is useful for
// any language.
// Author: Ray Smith
// Created: Mon Mar 18 11:26:00 PDT 2013
//
// (C) Copyright 2013, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -18,9 +17,11 @@
//
///////////////////////////////////////////////////////////////////////

#include "universalambigs.h"

namespace tesseract {

extern const char kUniversalAmbigsFile[] = {
const char kUniversalAmbigsFile[] = {
'\166', '\062', '\012', '\047', '\047', '\040', '\042', '\040', '\061',
'\012', '\140', '\047', '\040', '\042', '\040', '\061', '\012', '\047',
'\140', '\040', '\042', '\040', '\061', '\012', '\342', '\200', '\230',
Expand Down Expand Up @@ -19016,6 +19017,6 @@ extern const char kUniversalAmbigsFile[] = {
'\012',
};

extern const int ksizeofUniversalAmbigsFile = sizeof(kUniversalAmbigsFile);
const int ksizeofUniversalAmbigsFile = sizeof(kUniversalAmbigsFile);

} // namespace tesseract

0 comments on commit cd749be

Please sign in to comment.