mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
ccstruct/mod128.cpp: Fix compiler warnings
Compiler warnings from clang: src/ccstruct/mod128.cpp:57:15: warning: no previous extern declaration for non-static variable 'dirtab' [-Wmissing-variable-declarations] src/ccstruct/mod128.cpp:57:24: warning: use of old-style cast [-Wold-style-cast] src/ccstruct/mod128.cpp:57:35: warning: cast from 'const short *' to 'ICOORD *' drops const qualifier [-Wcast-qual] Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
2a61f6dfcd
commit
59b637efcf
@ -17,9 +17,9 @@
|
||||
*
|
||||
**********************************************************************/
|
||||
|
||||
#include "mod128.h"
|
||||
#include "mod128.h"
|
||||
|
||||
const int16_t idirtab[] = {
|
||||
static const int16_t idirtab[] = {
|
||||
1000, 0, 998, 49, 995, 98, 989, 146,
|
||||
980, 195, 970, 242, 956, 290, 941, 336,
|
||||
923, 382, 903, 427, 881, 471, 857, 514,
|
||||
@ -54,7 +54,7 @@ const int16_t idirtab[] = {
|
||||
980, -195, 989, -146, 995, -98, 998, -49
|
||||
};
|
||||
|
||||
const ICOORD *dirtab = (ICOORD *) idirtab;
|
||||
const ICOORD* dirtab = reinterpret_cast<const ICOORD*>(idirtab);
|
||||
|
||||
/**********************************************************************
|
||||
* DIR128::DIR128
|
||||
|
Loading…
Reference in New Issue
Block a user