-
-
Notifications
You must be signed in to change notification settings - Fork 606
Closed
Labels
Description
OSv fails to compile on Fedora 36 (which, among other things, has gcc 12.1.1).
Some of the errors:
include/osv/sched.hh:353:30: error: field ‘_name’ has incomplete type ‘std::array<char, 16>’
353 | std::array<char, 16> _name = {};
| ^~~~~
./bsd/sys/sys/queue.h:591:26: error: storing the address of local variable ‘tb’ in ‘*queue.tq_active.tqh_last’ [-Werror=dangling-pointer=]
591 | (head)->tqh_last = &TAILQ_NEXT((elm), field); \
| ^
./drivers/pci-function.hh:360:28: error: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Werror=deprecated-declarations]
360 | struct hash : std::unary_function< const function*, std::size_t> {
| ^~~~~~~~~~~~~~