Skip to content

build: Turn COMPILE_WARNING_AS_ERROR into a cache variable#142

Merged
nullobsi merged 1 commit into
nullobsi:mainfrom
PPN-SD:werror
May 11, 2026
Merged

build: Turn COMPILE_WARNING_AS_ERROR into a cache variable#142
nullobsi merged 1 commit into
nullobsi:mainfrom
PPN-SD:werror

Conversation

@PPN-SD
Copy link
Copy Markdown
Contributor

@PPN-SD PPN-SD commented May 10, 2026

The current default may break builds on stricter compilers and provides no benefit in the context of distributions.
e.g. https://bugs.gentoo.org/974493 with a unused-result with clang-21

cantata-3.4.0/models/streamsmodel.cpp:1303:3: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
 1303 |                 compressor->open(QIODevice::ReadOnly);
      |                 ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
1 error generated.

The current default may break builds on stricter compilers and provides
no benefit in the context of distributions.

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
@nullobsi nullobsi merged commit 3b2cfb2 into nullobsi:main May 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants