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:
Stefan Weil 2018-09-03 11:05:39 +02:00
parent 2a61f6dfcd
commit 59b637efcf

View File

@ -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