gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH] Be more explicit about the return value from gps_clos


From: Robert Norris
Subject: [gpsd-dev] [PATCH] Be more explicit about the return value from gps_close() is not used.
Date: Sat, 30 Jul 2016 18:09:01 +0000

---
 libgpsmm.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgpsmm.cpp b/libgpsmm.cpp
index a12d975..ba4aeb0 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;
     }
 }
-- 
2.8.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]