[build2] build2 staging GCC 11 compiler warnings

Boris Kolpackov boris at codesynthesis.com
Tue Jan 26 13:34:51 UTC 2021


Matthew Krupcale via users <users at build2.org> writes:

> It appears that there are two bpkg::kind enums defined.

Fixed for the next restage/release, thanks.


> Secondly, there are also several new -Wfree-nonheap-object warnings[2]
> related to libbutl/small-allocator.mxx:small_allocator::deallocate,
> but I believe these are false positives[3] since operator delete is
> only conditionally called. (GCC 11 added[4] support for this warning
> with operator delete).

That's unfortunate. Am I understanding correctly from your logs that
this warning is enabled with just -Wall?


> On the plus side, I'm no longer seeing any -Wmaybe-uninitialized
> warnings[5], so perhaps GCC made improvements there.

That would be nice; those were annoying and not easy to get rid of.



More information about the users mailing list