Skip to content

warnings: Fix clang generated warnings#850

Open
kraj wants to merge 1 commit into
COVESA:masterfrom
kraj:kraj/clang-22
Open

warnings: Fix clang generated warnings#850
kraj wants to merge 1 commit into
COVESA:masterfrom
kraj:kraj/clang-22

Conversation

@kraj
Copy link
Copy Markdown

@kraj kraj commented Apr 11, 2026

This patch ensures that it can compile with clang-22

This patch ensures that it can compile with clang-22

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
@minminlittleshrimp
Copy link
Copy Markdown
Collaborator

minminlittleshrimp commented Apr 16, 2026

Hi @kraj
Please kindly provide compile warning log record for review phase.
Regarding build package, is this using Android ndk or Soong sdk for build?

Thanks

Comment thread CMakeLists.txt
-Wno-system-headers
-Wno-unused-function
-Wno-stringop-truncation
$<$<AND:$<COMPILE_LANGUAGE:C>,$<C_COMPILER_ID:Clang>>:-Wno-gnu-statement-expression-from-macro-expansion>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Need rechecking for bounded cross-toolchain, see:

if(WITH_DLT_QNX_SYSTEM AND NOT "${CMAKE_C_COMPILER}" MATCHES "nto-qnx|qcc|ntoaarch64-gcc|ntox86_64-gcc")

(shall pattern like clang/clang++ must be added?)

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