diff options
author | Ćukasz Majewski <l.majewski@samsung.com> | 2014-11-21 09:22:43 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2015-01-10 14:09:55 -0500 |
commit | 93e9371f00f1efa9fc570f8e7e8889eae7639868 (patch) | |
tree | 5e7733fca5234fa5f407e551800725e9446b58b3 /common/cmd_fs.c | |
parent | b8c702263266379b12ea06bfe9bf2885710975eb (diff) | |
download | u-boot-imx-93e9371f00f1efa9fc570f8e7e8889eae7639868.zip u-boot-imx-93e9371f00f1efa9fc570f8e7e8889eae7639868.tar.gz u-boot-imx-93e9371f00f1efa9fc570f8e7e8889eae7639868.tar.bz2 |
fix: tools: kwbimage.c: Initialize headersz to suppress warning
When building with my toolchain (4.8.2):
CROSS_COMPILE=/home/lukma/work/ptxdist/toolchains/arm/OSELAS.Toolchain-2013.12.0/arm-v7a-linux-gnueabi/gcc-4.8.2-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/bin/arm-v7a-linux-gnueabi-
I see following WARNING:
tools/kwbimage.c: In function "kwbimage_set_header":
tools/kwbimage.c:803:8: warning: "headersz" may be used uninitialized in this function [-Wmaybe-uninitialized]
memcpy(ptr, image, headersz);
^
This fix aims to suppress it.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Stefan Roese <sr@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'common/cmd_fs.c')
0 files changed, 0 insertions, 0 deletions