Skip to content

Commit 814f666

Browse files
Fix codacy warning about structs never used (#60)
* Fix codacy warning about structs never used with a static assert
1 parent a4b8925 commit 814f666

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/CachedTile.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,6 @@ struct CachedTile
7070
}
7171
};
7272

73-
#endif
73+
static_assert(sizeof(CachedTile) >= 0, "Suppress unusedStruct");
74+
75+
#endif

src/TileJob.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ struct TileJob
3434
CachedTile *tile;
3535
};
3636

37-
#endif
37+
static_assert(sizeof(TileJob) >= 0, "Suppress unusedStruct");
38+
39+
#endif

0 commit comments

Comments
 (0)