Skip to content

Commit

Permalink
add cppcheck target to GPSBabel.pro. (GPSBabel#280)
Browse files Browse the repository at this point in the history
* add cppcheck target to GPSBabel.pro.

fix a few cppcheck errors.

* fix a few cppcheck items.

strptime fix is from upstream.
  • Loading branch information
tsteven4 authored Dec 14, 2018
1 parent ce7f639 commit 2afd295
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 85 deletions.
3 changes: 3 additions & 0 deletions GPSBabel.pro
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,6 @@ linux{
coverage.commands += genhtml coverage.info --output-directory coverage_report;
QMAKE_EXTRA_TARGETS += coverage
}

cppcheck.commands = cppcheck --enable=all --force --config-exclude=zlib --config-exclude=shapelib $(INCPATH) $$ALL_FMTS $$FILTERS $$SUPPORT $$JEEPS
QMAKE_EXTRA_TARGETS += cppcheck
2 changes: 1 addition & 1 deletion mapsource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ mps_track_r(gbfile* mps_file, int mps_ver, route_head** trk)
return;
}
#ifdef MPS_DEBUG
fprintf(stderr, "mps_track_r: there are %d track waypoints %d\n", trk_count);
fprintf(stderr, "mps_track_r: there are %d track waypoints\n", trk_count);
#endif

track_head = route_head_alloc();
Expand Down
Loading

0 comments on commit 2afd295

Please sign in to comment.