Skip to content

Commit 4fbb26d

Browse files
committed
Removed warnings from inspections in CLion
1 parent b9f6405 commit 4fbb26d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

mapcodelib/mapcoder.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,6 @@ static int coDex(const int m) {
284284
return 10 * (c / 5) + ((c % 5) + 1);
285285
}
286286

287-
#define prefixLength(m) (((mminfo[m].flags & 31)/5))
288-
#define postfixLength(m) ((((mminfo[m].flags & 31)%5)+1))
289287
#define isNameless(m) ((mminfo[m].flags & 64))
290288
#define recType(m) ((mminfo[m].flags>>7) & 3)
291289
#define isRestricted(m) (mminfo[m].flags & 512)
@@ -747,7 +745,7 @@ static void encodeNameless(char *result, const encodeRec *enc, const int input_c
747745
SIDE = smartDiv(m);
748746

749747
b = boundaries(m);
750-
orgSIDE = xSIDE = SIDE;
748+
orgSIDE = SIDE;
751749

752750
{
753751
int v = storage_offset;
@@ -1187,7 +1185,7 @@ static int decodeGrid(decodeRec *dec, const int m, const int hasHeaderLetter) {
11871185

11881186
{
11891187
int relx, rely;
1190-
const int v = decodeBase31(result);
1188+
int v = decodeBase31(result);
11911189

11921190
if (divx != divy && prelen > 2) {
11931191
// special grid, useful when prefix is 3 or more, and not a nice 961x961
@@ -1228,7 +1226,6 @@ static int decodeGrid(decodeRec *dec, const int m, const int hasHeaderLetter) {
12281226
decode_triple(r, &difx, &dify);
12291227
}
12301228
else {
1231-
int v;
12321229
if (postlen == 4) {
12331230
char t = r[1];
12341231
r[1] = r[2];
@@ -1625,7 +1622,6 @@ static int decoderEngine(decodeRec *dec) {
16251622
if (!nrZoneOverlaps) {
16261623
MapcodeZone zfound;
16271624
Boundaries prevu;
1628-
int prevj = -1;
16291625
for (j = from; j < i; j++) { // try all smaller rectangles j
16301626
if (!isRestricted(j)) {
16311627
MapcodeZone z;
@@ -1634,7 +1630,6 @@ static int decoderEngine(decodeRec *dec) {
16341630
if (nrZoneOverlaps == 1) {
16351631
// first fit! remember...
16361632
zoneCopyFrom(&zfound, &z);
1637-
prevj = j;
16381633
memcpy(&prevu, boundaries(j), sizeof(Boundaries));
16391634
}
16401635
else { // nrZoneOverlaps >= 2

0 commit comments

Comments
 (0)