Hi,
The last two DEV tarballs are ending up with the indicated error. It appeared in the added functionality base/containers/intrusive_heap.h. The corresponding code is
class BASE_EXPORT HeapHandle {
public:
enum : size_t { kInvalidIndex = -1 };
The error generated is :
[ 375s] In file included from ../../base/task/common/intrusive_heap.h:8,
[ 375s] from ../../base/task/thread_pool/task_source.h:17,
[ 375s] from ../../base/task/thread_pool/task_tracker.h:27,
[ 375s] from ./../../base/task/thread_pool/service_thread.cc:14,
[ 375s] from gen/base/base_jumbo_28.cc:5:
[ 375s] ../../base/containers/intrusive_heap.h:152:36: error: enumerator value '-1' is outside the range of underlying type 'size_t' {aka 'long unsigned int'}
[ 375s] 152 | enum : size_t { kInvalidIndex = -1 };
[ 375s] |
Strangely this error is not generated on Gentoo, who builds with a similar setup and equal GN flags. So I am wondering if this is a GCC flag that is switched on for openSUSE or something else. Nevertheless I believe that assigning an signed value to a unsigned integer is wrong in the first place.
Regards
Raymond