Skip to content

Commit

Permalink
ccstruct/mod128.cpp: Fix compiler warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stweil committed Sep 3, 2018
1 parent 2a61f6d commit 59b637e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ccstruct/mod128.cpp
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 59b637e

Please sign in to comment.