Latest chromium-dev build fails with error: enumerator value '-1' is outside the range of underlying type 'size_t' {aka 'long unsigned int'}

9 views
Skip to first unread message

Raymond W

unread,
Sep 9, 2019, 12:40:55 PM9/9/19
to chromium-packagers
Hi,

The last two chromium-dev builds are failing to build on openSUSE. This was caused by the latest addition of base/containers/intrusive_heap.h.

The error message is:

[ 397s] In file included from ../../base/task/common/intrusive_heap.h:8,
[ 397s] from ../../base/task/sequence_manager/task_queue_impl.h:19,
[ 397s] from ../../base/task/sequence_manager/sequence_manager.h:15,
[ 397s] from ./../../base/message_loop/message_loop.cc:17,
[ 397s] from gen/base/base_jumbo_10.cc:6:
[ 397s] ../../base/containers/intrusive_heap.h:152:36: error: enumerator value '-1' is outside the range of underlying type 'size_t' {aka 'long unsigned int'}
[ 397s] enum : size_t { kInvalidIndex = -1 };
[ 397s] ^
[ 397s] ../../base/containers/intrusive_heap.h:460:58: warning: friend declaration 'void base::swap(base::IntrusiveHeap<T, Compare, HeapHandleAccessor>&, base::IntrusiveHeap<T, Compare, HeapHandleAccessor>&)' declares a non-template function [-Wnon-template-friend]
[ 397s] friend void swap(IntrusiveHeap& lhs, IntrusiveHeap& rhs);
[ 397s] ^
[ 397s] ../../base/containers/intrusive_heap.h:460:58: note: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here)

It sounds logical to me that when I have an unsigned int, that I can not assign the value -1 to it :)

Thanks

Regards

Raymond
Reply all
Reply to author
Forward
0 new messages