mirror of
https://xff.cz/git/u-boot/
synced 2025-09-28 05:51:17 +02:00
fdtdec: test: Fix build warning
Hide the declaration of the "fd" variable When not building a DEBUG configuration, to avoid the variable being unused. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
54969b40a0
commit
3db600c3ea
@@ -79,7 +79,9 @@ static int make_fdt(void *fdt, int size, const char *aliases,
|
|||||||
{
|
{
|
||||||
char name[20], value[20];
|
char name[20], value[20];
|
||||||
const char *s;
|
const char *s;
|
||||||
|
#if defined(DEBUG) && defined(CONFIG_SANDBOX)
|
||||||
int fd;
|
int fd;
|
||||||
|
#endif
|
||||||
|
|
||||||
CHECK(fdt_create(fdt, size));
|
CHECK(fdt_create(fdt, size));
|
||||||
CHECK(fdt_finish_reservemap(fdt));
|
CHECK(fdt_finish_reservemap(fdt));
|
||||||
|
Reference in New Issue
Block a user