Le ven. 15 févr. 2019 à 17:33, John D. Baker <[email protected]> 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
