Skip to content

build: make, cmake: add -Werror based on CFG_WERROR#797

Merged
jforissier merged 1 commit into
OP-TEE:masterfrom
jforissier:cfg-werror
May 7, 2025
Merged

build: make, cmake: add -Werror based on CFG_WERROR#797
jforissier merged 1 commit into
OP-TEE:masterfrom
jforissier:cfg-werror

Conversation

@jforissier
Copy link
Copy Markdown
Contributor

Update the build files that currently set -Werror unconditionally to use set it based on the value of CFG_WERROR instead. CFG_WERROR is set to y by default, but may be unset (or set to n) from the build command line or the environment.

@mikkorapeli-linaro
Copy link
Copy Markdown

Thanks! This is useful in distro integration when toolchains are updated etc.

@jenswikl
Copy link
Copy Markdown
Contributor

jenswikl commented May 7, 2025

I think it should be disabled by default. That's what we have in optee_os.
Sigh, I see now that we have it enabled by default in optee_client.

@jforissier
Copy link
Copy Markdown
Contributor Author

I think it should be disabled by default. That's what we have in optee_os. Sigh, I see now that we have it enabled by default in optee_client.

Hmmm yes let's make it disabled by default.

@jforissier
Copy link
Copy Markdown
Contributor Author

Update

@jenswikl
Copy link
Copy Markdown
Contributor

jenswikl commented May 7, 2025

Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

Copy link
Copy Markdown
Contributor

@etienne-lms etienne-lms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>

Update the build files that currently set -Werror unconditionally to
use set it based on the value of CFG_WERROR instead (disabled by
default).

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
@jforissier jforissier merged commit d068b66 into OP-TEE:master May 7, 2025
1 check passed
@jforissier jforissier deleted the cfg-werror branch May 7, 2025 16:04
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.

4 participants