diff options
author | Peter Foley <pefoley2@verizon.net> | 2011-10-22 10:48:49 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2011-12-18 15:54:12 -0500 |
commit | 70cc01e7579cdb71f42f3f7085ab457be7808783 (patch) | |
tree | 610561c2bd52264da1d6c9a6060f0b9229d1f86d /scripts | |
parent | 4f0c28f77932c51ba7639a6174047ec8c6560116 (diff) |
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
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>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rw-r--r-- | 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 5a58965d880..7c7a5a6cc3f 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) | |||
464 | fprintf(fp, "#"); | 464 | fprintf(fp, "#"); |
465 | if (l) { | 465 | if (l) { |
466 | fprintf(fp, " "); | 466 | fprintf(fp, " "); |
467 | fwrite(p, l, 1, fp); | 467 | xfwrite(p, l, 1, fp); |
468 | p += l; | 468 | p += l; |
469 | } | 469 | } |
470 | fprintf(fp, "\n"); | 470 | fprintf(fp, "\n"); |
@@ -537,7 +537,7 @@ header_print_comment(FILE *fp, const char *value, void *arg) | |||
537 | fprintf(fp, " *"); | 537 | fprintf(fp, " *"); |
538 | if (l) { | 538 | if (l) { |
539 | fprintf(fp, " "); | 539 | fprintf(fp, " "); |
540 | fwrite(p, l, 1, fp); | 540 | xfwrite(p, l, 1, fp); |
541 | p += l; | 541 | p += l; |
542 | } | 542 | } |
543 | fprintf(fp, "\n"); | 543 | fprintf(fp, "\n"); |