Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: mac68k kern-INSTALL vs GCC7?
Le ven. 15 févr. 2019 à 17:33, John D. Baker
<jdbaker%consolidated.net@localhost> a écrit :
>
> Building for mac68k with -V HAVE_GCC=7 produces the following error:
>
> /x/current/src/sys/arch/mac68k/mac68k/intr.c:135:2: note: in expansion of macro 'memcpy'
> memcpy(g_inames, inames, MAX_INAME_LENGTH);
> ^~~~~~
> cc1: all warnings being treated as errors
> *** [intr.o] Error code 1
> nbmake[2]: stopped in /r0/build/current/obj/mac68k/sys/arch/mac68k/compile/INSTALL
> 1 error
> nbmake[2]: stopped in /r0/build/current/obj/mac68k/sys/arch/mac68k/compile/INSTALL
> [...]
The code there boilds down to memcpy(&intrnames, "somestring", 53);
which while actually being (upon inspection) fine, it is very
difficult to parse and compiler warns correctly.
Maybe something like this?
https://www.netbsd.org/~jdolecek/mac68k_intr_gcc7.diff
Jaromir
Home |
Main Index |
Thread Index |
Old Index