1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-18 19:52:09 +01:00

Silenced compiler warnings

This commit is contained in:
Martin Tůma 2023-10-10 23:05:15 +02:00
parent 78240787ab
commit e63fbffe08
2 changed files with 2 additions and 2 deletions

View File

@ -429,7 +429,7 @@ bool NMEAParser::readZDA(CTX &ctx, const char *line, int len)
{
int col = 1;
const char *vp = line;
int d, m, y;
int d = 0, m = 0, y = 0;
for (const char *lp = line; lp < line + len; lp++) {
if (*lp == ',' || *lp == '*') {

View File

@ -246,7 +246,7 @@ static QPainterPath textPath(const T &path, qreal textWidth, qreal charWidth,
for (int i = 0; i < lines.size(); i++) {
const QPolygonF &pl = lines.at(i);
qreal angle, length = 0;
qreal angle = 0, length = 0;
int last = 0;
for (int j = 1; j < pl.size(); j ++) {