[Crosstoolchain-logs] [device-tree-compiler] 325/357: libfdt: Fix C++ compile-time cast error on gnu 4.2.1
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:06:28 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit f281f526d4f039f4c3236176abe6396da4a443fe
Author: Laurent Gregoire <laurent.gregoire at tomtom.com>
Date: Tue Mar 3 14:23:59 2009 +0100
libfdt: Fix C++ compile-time cast error on gnu 4.2.1
Allow the inclusion of libfdt.h in C++ source.
Signed-off-by: Laurent Gregoire <laurent.gregoire at tomtom.com>
Acked-by: David Gibson <david at gibson.dropbear.id.au>
---
libfdt/libfdt.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libfdt/libfdt.h b/libfdt/libfdt.h
index 4a95e11..18de52b 100644
--- a/libfdt/libfdt.h
+++ b/libfdt/libfdt.h
@@ -156,7 +156,7 @@ int fdt_next_node(const void *fdt, int offset, int *depth);
#define __fdt_set_hdr(name) \
static inline void fdt_set_##name(void *fdt, uint32_t val) \
{ \
- struct fdt_header *fdth = fdt; \
+ struct fdt_header *fdth = (struct fdt_header*)fdt; \
fdth->name = cpu_to_fdt32(val); \
}
__fdt_set_hdr(magic);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list