summaryrefslogtreecommitdiff
path: root/libgpsmm.cpp
diff options
context:
space:
mode:
authorRobert Norris <rw_norris@hotmail.com>2016-07-30 18:09:01 +0000
committerGary E. Miller <gem@rellim.com>2016-08-02 17:08:00 -0700
commit42fcc594af93e78a0082ef7b2fe1a5b6e536a1c8 (patch)
tree05b1fee1148f92e00f7c4a78f3036da1ce97adeb /libgpsmm.cpp
parent9702418468b54c79f6d8502ce69155d8f72d4f9e (diff)
downloadgpsd-42fcc594af93e78a0082ef7b2fe1a5b6e536a1c8.tar.gz
Be more explicit about the return value from gps_close() is not used.
Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'libgpsmm.cpp')
-rw-r--r--libgpsmm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpsmm.cpp b/libgpsmm.cpp
index a12d9753..ba4aeb0b 100644
--- a/libgpsmm.cpp
+++ b/libgpsmm.cpp
@@ -91,7 +91,7 @@ bool gpsmm::is_open(void)
gpsmm::~gpsmm()
{
if ( to_user != NULL ) {
- gps_close(gps_state());
+ (void)gps_close(gps_state());
delete to_user;
}
}