Skip to content

Build warnings with TF-M that are not treated as errors #90864

Open
@nashif

Description

@nashif

Describe the bug

when building anything with TF-M, there are build warnings that are not being treated as errors, so there are 2 issues:

  • The build warnings themselves
  • The fact that -Werror is not being propagted to TF-M and those are not detected in CI and during development

Regression

  • This is a regression.

Steps to reproduce

west build -p -b mps2/an521/cpu0/ns samples/hello_world

Relevant log output

[48/378] Building C object bl2/ext/mcuboot/bootutil/CMakeFiles/bootutil.dir/src/bootutil_misc.o
/home/nashif/zephyrproject/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c: In function 'boot_trailer_scramble_offset':
/home/nashif/zephyrproject/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c:153:15: warning: implicit declaration of function 'flash_area_get_sector'; did you mean 'flash_area_get_sectors'? [-Wimplicit-function-declaration]
  153 |         ret = flash_area_get_sector(fa, flash_area_get_size(fa) - boot_trailer_sz(alignment),
      |               ^~~~~~~~~~~~~~~~~~~~~
      |               flash_area_get_sectors

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

Zephyr SDK 0.17.1 on Linux on latest main branch v4.1.0-4985-ga098f5c3a39

Additional Context

No response

Metadata

Metadata

Assignees

Labels

area: TF-MARM Trusted Firmware-M (TF-M)bugThe issue is a bug, or the PR is fixing a bugpriority: highHigh impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions