Skip to content

Commit

Permalink
tests: kernel: Fixed disabling of __deprecated macros
Browse files Browse the repository at this point in the history
When disabling the __deprecated macros in tests/kernel/pipe/deprecated,
the macros was set to ''. For IAR tools this was expanded to '' which
caused a compilation error.

I have replaced them with /* deprecated */ which should work for all
toolchains.

Signed-off-by: Lars-Ove Karlsson <[email protected]>
  • Loading branch information
LoveKarlsson committed Feb 26, 2025
1 parent 3fa0cd5 commit e0817f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/kernel/pipe/deprecated/pipe/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)
set(CMAKE_C_FLAGS "-D__deprecated='' -D__DEPRECATED_MACRO=''")
set(CMAKE_C_FLAGS "-D__deprecated=\"/* deprecated */\" -D__DEPRECATED_MACRO=\"/* depecated_macro*/\"")
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(pipe)

Expand Down
2 changes: 1 addition & 1 deletion tests/kernel/pipe/deprecated/pipe_api/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)
set(CMAKE_C_FLAGS "-D__deprecated='' -D__DEPRECATED_MACRO=''")
set(CMAKE_C_FLAGS "-D__deprecated=\"/* deprecated */\" -D__DEPRECATED_MACRO=\"/* depecated_macro*/\"")
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(pipe_api)

Expand Down

0 comments on commit e0817f1

Please sign in to comment.