From: Peter Foley Date: Sat, 22 Oct 2011 14:48:49 +0000 (-0400) Subject: kconfig: use xfwrite wrapper function to silence warnings X-Git-Tag: 1.9.6~16 X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=3d15a51c8e93f2a055a06115fb1f11968ea7fad2 kconfig: use xfwrite wrapper function to silence warnings Use the xfwrite wrapper function defined in lkc.h to check the return value of fwrite and silence these warnings. HOSTCC scripts/kconfig/zconf.tab.o config/zconf.tab.c: In function 'header_print_comment': config/confdata.c:551:10: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result config/zconf.tab.c: In function 'kconfig_print_comment': config/confdata.c:467:10: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result Signed-off-by: Peter Foley Signed-off-by: Michal Marek Signed-off-by: Christian Lamparter --- diff --git a/config/confdata.c b/config/confdata.c index 54b19b0..8346841 100644 --- a/config/confdata.c +++ b/config/confdata.c @@ -504,7 +504,7 @@ kconfig_print_comment(FILE *fp, const char *value, void *arg) fprintf(fp, "#"); if (l) { fprintf(fp, " "); - fwrite(p, l, 1, fp); + xfwrite(p, l, 1, fp); p += l; } fprintf(fp, "\n"); @@ -583,7 +583,7 @@ header_print_comment(FILE *fp, const char *value, void *arg) fprintf(fp, " *"); if (l) { fprintf(fp, " "); - fwrite(p, l, 1, fp); + xfwrite(p, l, 1, fp); p += l; } fprintf(fp, "\n");