svn commit: r364091 - head/lib/libc/gen

Adrian Chadd adrian.chadd at gmail.com
Fri Aug 28 00:28:18 UTC 2020


Hi!

This breaks when compiling FreeBSD-mips on GCC-9. :(

In file included from
/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/gen/scandir.c:50,
                 from
/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/gen/scandir_b.c:29:
/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/include/block_abi.h:45:2:
error: anonymous struct declared inside parameter list will not be visible
outside of this definition or declarati
   45 |  struct {\
      |  ^~~~~~
/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/gen/scandir.c:67:5:
note: in expansion of macro 'DECLARE_BLOCK'
   67 |     DECLARE_BLOCK(int, dcomp, const struct dirent **, const struct
dirent **))
      |     ^~~~~~~~~~~~~
/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/include/block_abi.h:45:2:
error: anonymous struct declared inside parameter list will not be visible
outside of this definition or declarati
   45 |  struct {\
      |  ^~~~~~
/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/gen/scandir.c:66:5:
note: in expansion of macro 'DECLARE_BLOCK'
   66 |     DECLARE_BLOCK(int, select, const struct dirent *),
      |     ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
--- scandir_b.o ---
*** [scandir_b.o] Error code 1


-adrian


More information about the svn-src-head mailing list