From 42fcc594af93e78a0082ef7b2fe1a5b6e536a1c8 Mon Sep 17 00:00:00 2001 From: Robert Norris Date: Sat, 30 Jul 2016 18:09:01 +0000 Subject: [PATCH] Be more explicit about the return value from gps_close() is not used. Signed-off-by: Gary E. Miller --- libgpsmm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }