https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: media-libs/libgphoto2-2.5.26 uses -Werror for build. Discovered on: amd64 (internal ref: ci) -Werror is not recommended for releases and should always be disabled when encountered in build-logs, because there are numerous cases where this breaks without purpose. See also: https://devmanual.gentoo.org/ebuild-writing/common-mistakes/index.html NOTE: If you want to change the summary, to avoid auto-filed duplicates, please at least keep the word '-Werror'
Yes, this is intentional. There are unit tests (test-pedantic-compilation.c, test-pedantic-compilation.cxx) that are compiled with various -Werror flags. It's the only thing compiled with -Werror, and it's not compiled unless FEATURES=test is set.