Commit 262a8a26 authored by Adam Wujek's avatar Adam Wujek 💬

tools/libipmi: get rid of warnings

Get rid of warnings:

ipmi.c: In function ‘ipmi_common_header_write’:
ipmi.c:68:6: warning: variable ‘ret’ set but not used
[-Wunused-but-set-variable]
  int ret;
      ^
ipmi.c: In function ‘ipmi_board_info_area_write’:
ipmi.c:119:6: warning: variable ‘ret’ set but not used
[-Wunused-but-set-variable]
  int ret;
      ^
ipmi.c: In function ‘ipmi_dc_load_record_write’:
ipmi.c:198:6: warning: variable ‘ret’ set but not used
[-Wunused-but-set-variable]
  int ret;
      ^
ipmi.c: In function ‘ipmi_dc_output_record_write’:
ipmi.c:228:6: warning: variable ‘ret’ set but not used
[-Wunused-but-set-variable]
  int ret;
      ^
ipmi.c: In function ‘ipmi_oem_record_write’:
ipmi.c:258:6: warning: variable ‘ret’ set but not used
[-Wunused-but-set-variable]
  int ret;
      ^
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 7b6ab474
......@@ -73,6 +73,9 @@ int ipmi_common_header_write(void)
ch->checksum = checksum((uint8_t *)ch, sizeof(struct common_header) - 1);
ret = fwrite(ch, 1, sizeof(struct common_header), f);
/* avoid warning, maybe ret will be used one day */
(void) ret;
return 0;
}
......@@ -190,6 +193,9 @@ int ipmi_board_info_area_write(void)
ret = fwrite(&nul, 1, sizeof(uint8_t), f);
ret = fwrite(&bia->checksum, 1, sizeof(uint8_t), f);
/* avoid warning, maybe ret will be used one day */
(void) ret;
return 0;
}
......@@ -220,6 +226,9 @@ int ipmi_dc_load_record_write(int end)
t = t->next;
}
/* avoid warning, maybe ret will be used one day */
(void) ret;
return 0;
}
......@@ -250,6 +259,9 @@ int ipmi_dc_output_record_write(int end)
t = t->next;
}
/* avoid warning, maybe ret will be used one day */
(void) ret;
return 0;
}
......@@ -279,6 +291,9 @@ int ipmi_oem_record_write(int end)
ret = fwrite(&head, 1, sizeof(struct multirecord_header), f);
ret = fwrite(oem, 1, sizeof(struct oem_record), f);
/* avoid warning, maybe ret will be used one day */
(void) ret;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment