[PATCH 08/20] libcsupport/src/sync.c: Indicate return value explicitly ignored

Joel Sherrill joel.sherrill at oarcorp.com
Tue Nov 25 23:02:36 UTC 2014


From: Josh Oguin <josh.oguin at oarcorp.com>

This was flagged as an ignored return value by CodeSonar.
---
 cpukit/libcsupport/src/sync.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cpukit/libcsupport/src/sync.c b/cpukit/libcsupport/src/sync.c
index 653a177..b8e5059 100644
--- a/cpukit/libcsupport/src/sync.c
+++ b/cpukit/libcsupport/src/sync.c
@@ -6,7 +6,7 @@
  */
 
 /*
- *  COPYRIGHT (c) 1989-2008.
+ *  COPYRIGHT (c) 1989-2014.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -43,8 +43,8 @@ static void sync_wrapper(FILE *f)
    *  matter if they succeed.  We are just making a best faith attempt
    *  at both and trusting that we were passed a good FILE pointer.
    */
-  fsync(fn);
-  fdatasync(fn);
+  (void) fsync(fn);
+  (void) fdatasync(fn);
 }
 
 /* iterate over all FILE *'s for this thread */
-- 
1.9.3




More information about the devel mailing list