From 3d15a51c8e93f2a055a06115fb1f11968ea7fad2 Mon Sep 17 00:00:00 2001 From: Peter Foley Date: Sat, 22 Oct 2011 10:48:49 -0400 Subject: [PATCH] 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 --- config/confdata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.31.1