Skip to content

Commit

Permalink
kconfig: use xfwrite wrapper function to silence warnings
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
pefoley2 authored and michal42 committed Dec 18, 2011
1 parent 4f0c28f commit 70cc01e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/kconfig/confdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -537,7 +537,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");
Expand Down

0 comments on commit 70cc01e

Please sign in to comment.