diff options
author | Simon Glass <sjg@chromium.org> | 2013-08-15 21:32:08 -0600 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-08-25 16:57:28 -0700 |
commit | 3401fdcd4125beea1a8cb1cc59ee27df89d4d88a (patch) | |
tree | 5fd2c191d0f98ab276bf11f87c88d3c7fbfe222a /futility/futility.c | |
parent | 47779880b28f2c549dd3349d8f28d68a0f784eb4 (diff) | |
download | vboot-3401fdcd4125beea1a8cb1cc59ee27df89d4d88a.tar.gz |
Correct some minor compiler warnings
A few places in the code through up warnings when building with strict
compiler flags. Correct these.
BUG=chrome-os-partner:21115
BRANCH=pit
TEST=manual
Build with:
FEATURES=test emerge-peach_pit vboot_reference
and see that iot now succeeds. Warnings include:
host/arch/arm/lib/crossystem_arch.c: In function 'ReadFdtValue':
host/arch/arm/lib/crossystem_arch.c:93:8: error: ignoring return value of 'fread', declared with attribute warn_unused_result [-Werror=unused-result]
Change-Id: I765723636e5f8979b794925c7b610081b2849026
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/66174
Diffstat (limited to 'futility/futility.c')
-rw-r--r-- | futility/futility.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/futility/futility.c b/futility/futility.c index 54921d1a..35620865 100644 --- a/futility/futility.c +++ b/futility/futility.c @@ -108,7 +108,8 @@ static void log_str(char *str) return; } - write(log_fd, "\n", 1); + if (write(log_fd, "\n", 1) < 0) + return; } static void log_close(void) |