* [PATCH] kbuild: use xfwrite wrapper function to silence warnings
@ 2011-10-22 14:48 Peter Foley
2011-12-18 20:55 ` Michal Marek
0 siblings, 1 reply; 2+ messages in thread
From: Peter Foley @ 2011-10-22 14:48 UTC (permalink / raw)
To: Linux Kernel Mailing List, Linux Kbuild Mailing List, mmarek
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
scripts/kconfig/zconf.tab.c: In function 'header_print_comment':
/usr/src/lto/scripts/kconfig/confdata.c:551:10: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
scripts/kconfig/zconf.tab.c: In function 'kconfig_print_comment':
/usr/src/lto/scripts/kconfig/confdata.c:467:10: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
Signed-off-by: Peter Foley <pefoley2@verizon.net>
---
scripts/kconfig/confdata.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index 59b667c..f90c22f 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -464,7 +464,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");
@@ -548,7 +548,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");
--
1.7.7
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] kbuild: use xfwrite wrapper function to silence warnings
2011-10-22 14:48 [PATCH] kbuild: use xfwrite wrapper function to silence warnings Peter Foley
@ 2011-12-18 20:55 ` Michal Marek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2011-12-18 20:55 UTC (permalink / raw)
To: Peter Foley; +Cc: Linux Kernel Mailing List, Linux Kbuild Mailing List
On Sat, Oct 22, 2011 at 10:48:49AM -0400, Peter Foley wrote:
> 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
> scripts/kconfig/zconf.tab.c: In function 'header_print_comment':
> /usr/src/lto/scripts/kconfig/confdata.c:551:10: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
> scripts/kconfig/zconf.tab.c: In function 'kconfig_print_comment':
> /usr/src/lto/scripts/kconfig/confdata.c:467:10: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
>
> Signed-off-by: Peter Foley <pefoley2@verizon.net>
> ---
> scripts/kconfig/confdata.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
Applied to kbuild.git#kconfig, thanks.
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-18 20:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-22 14:48 [PATCH] kbuild: use xfwrite wrapper function to silence warnings Peter Foley
2011-12-18 20:55 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox