Skip to content

Conversation

@tejlmand
Copy link
Contributor

Quotes around "SUBALIGN ${SUBALIGN}" results in the parameters to become a text string with a space, and therefore will give the warning

CMake Warning at /.../extensions.cmake:5197 (message):
zephyr_linker_section(NAME ...) given unknown arguments: SUBALIGN 4
Call Stack (most recent call first):
/.../extensions.cmake:5333 (zephyr_linker_section)
/.../CMakeLists.txt:x (zephyr_iterable_section)

Remove the quotes so that SUBALIGN and the value are correctly treated as argument name and value.

Quotes around `"SUBALIGN ${SUBALIGN}"` results in the parameters to
become a text string with a space, and therefore will give the warning

> CMake Warning at /.../extensions.cmake:5197 (message):
>  zephyr_linker_section(NAME ...) given unknown arguments: SUBALIGN 4
> Call Stack (most recent call first):
>   /.../extensions.cmake:5333 (zephyr_linker_section)
>   /.../CMakeLists.txt:x (zephyr_iterable_section)

Remove the quotes so that `SUBALIGN` and the value are correctly treated
as argument name and value.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
@zephyrbot zephyrbot added area: Build System size: XS A PR changing only a single line of code labels Nov 20, 2025
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Build System size: XS A PR changing only a single line of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants