summaryrefslogtreecommitdiff
path: root/libgpsmm.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-18 04:44:01 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-18 04:44:01 -0400
commit7ee2bf88e99f0ffa027c5839e5ae85d55752ac1b (patch)
tree8a224b5479e288537d51d0f044df7e8cd532b574 /libgpsmm.h
parentc46e369a26bb693e744206979ee9d8674c27f1da (diff)
downloadgpsd-7ee2bf88e99f0ffa027c5839e5ae85d55752ac1b.tar.gz
More cppcheck warning fixups. All regression tests pass.
Diffstat (limited to 'libgpsmm.h')
-rw-r--r--libgpsmm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgpsmm.h b/libgpsmm.h
index 8f2e605f..a367ada1 100644
--- a/libgpsmm.h
+++ b/libgpsmm.h
@@ -26,10 +26,12 @@ class gpsmm {
class LIBQGPSMMSHARED_EXPORT gpsmm {
#endif
public:
+ // cppcheck-suppress uninitVar
gpsmm(const char *host, const char *port) : to_user(0) {
gps_inner_open(host, port);
}
#ifdef __UNUSED__
+ // cppcheck-suppress uninitVar
gpsmm(void) : to_user(0)
{
gps_inner_open("localhost", DEFAULT_GPSD_PORT);