From 9921836e982818b92e20280eecb74e701523045c Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Thu, 12 Mar 2015 17:38:27 +0100 Subject: [PATCH] sync_filesystem.h: fix unreachable code Fix for: CID 1264460 (#1 of 1): Structurally dead code (UNREACHABLE) unreachable: This code cannot be reached: sync(); Signed-off-by: Danny Al-Gaaf --- src/common/sync_filesystem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/sync_filesystem.h b/src/common/sync_filesystem.h index b7eaea71e0e..ecfc77a3933 100644 --- a/src/common/sync_filesystem.h +++ b/src/common/sync_filesystem.h @@ -46,10 +46,10 @@ inline int sync_filesystem(int fd) return 0; else return -errno; -#endif - +#else sync(); return 0; +#endif } #endif -- 2.47.3