From cac2dba48bf8029b2b0421850fcc4598e33569f6 Mon Sep 17 00:00:00 2001 From: Yaniv Kaul Date: Sun, 21 Oct 2018 03:55:04 +0300 Subject: libglusterfs multiple files: remove dead initilization Per newer GCC releases and clang-scan, some trivial dead initialization (values that were set but were never read) were removed. Compile-tested only! updates: bz#1193929 Signed-off-by: Yaniv Kaul Change-Id: Ia9959b2ff87d2e9cb46864e68ffe7dccb984db34 --- libglusterfs/src/statedump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libglusterfs/src/statedump.c') diff --git a/libglusterfs/src/statedump.c b/libglusterfs/src/statedump.c index 0f4a7102697..ed5cad5349b 100644 --- a/libglusterfs/src/statedump.c +++ b/libglusterfs/src/statedump.c @@ -745,7 +745,7 @@ gf_proc_dump_options_init() (void)gf_proc_dump_disable_all_options(); // swallow the errors if setting statedump file path is failed. - ret = gf_proc_dump_set_path(dump_option_file); + (void)gf_proc_dump_set_path(dump_option_file); ret = fscanf(fp, "%s", buf); @@ -864,7 +864,7 @@ gf_proc_dump_info(int signum, glusterfs_ctx_t *ctx) timestr); // swallow the errors of write for start and end marker - ret = sys_write(gf_dump_fd, sign_string, len); + (void)sys_write(gf_dump_fd, sign_string, len); memset(timestr, 0, sizeof(timestr)); @@ -914,7 +914,7 @@ gf_proc_dump_info(int signum, glusterfs_ctx_t *ctx) len = snprintf(sign_string, sizeof(sign_string), "\nDUMP-END-TIME: %s", timestr); - ret = sys_write(gf_dump_fd, sign_string, len); + (void)sys_write(gf_dump_fd, sign_string, len); if (gf_dump_fd != -1) gf_proc_dump_close(); -- cgit