devicetree-compiler.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fdtdump.c: Compile error with GCC 11
@ 2021-01-04  8:39 Sebastian Huber
       [not found] ` <db5d86de-fa1b-9d44-1188-edb81578bc00-L1vi/lXTdtsBbLBgBO8hYIQuADTiUCJX@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Huber @ 2021-01-04  8:39 UTC (permalink / raw)
  To: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA

Hello,

I get a compile error with GCC 11 in fdtdump.c:

In file included from fdtdump.c:14:
fdtdump.c: In function ‘main’:
libfdt/libfdt.h:256:28: error: array subscript ‘struct fdt_header[0]’ is 
partly outside array bounds of ‘unsigned char[4]’ [-Werror=array-bounds]
   256 |                 fdth->name = cpu_to_fdt32(val); \
       |                 ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
libfdt/libfdt.h:258:1: note: in expansion of macro ‘fdt_set_hdr_’
   258 | fdt_set_hdr_(magic);
       | ^~~~~~~~~~~~
fdtdump.c:216:31: note: while referencing ‘smagic’
   216 |                 unsigned char smagic[FDT_MAGIC_SIZE];
       |                               ^~~~~~
cc1: all warnings being treated as errors

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber-L1vi/lXTdtsBbLBgBO8hYIQuADTiUCJX@public.gmane.org
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-18  6:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-04  8:39 fdtdump.c: Compile error with GCC 11 Sebastian Huber
     [not found] ` <db5d86de-fa1b-9d44-1188-edb81578bc00-L1vi/lXTdtsBbLBgBO8hYIQuADTiUCJX@public.gmane.org>
2021-01-06  3:54   ` David Gibson
     [not found]     ` <20210106035431.GB3209-l+x2Y8Cxqc4e6aEkudXLsA@public.gmane.org>
2021-01-15  5:22       ` Sebastian Huber
     [not found]         ` <8822ec89-7782-7608-cae5-e62770e28771-L1vi/lXTdtsBbLBgBO8hYIQuADTiUCJX@public.gmane.org>
2021-01-18  6:50           ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).