From 56beca382855117c1d5fba4243be3799d48a9fce Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Thu, 9 Dec 2021 20:42:56 -0700 Subject: [PATCH] sys: cbprintf: Fix unused arg warning Missed unused arg, throws warning when compiling with -Wunused-parameter. Signed-off-by: Yuval Peress --- include/sys/cbprintf_cxx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/sys/cbprintf_cxx.h b/include/sys/cbprintf_cxx.h index 4e602a528e3..a268919c2ca 100644 --- a/include/sys/cbprintf_cxx.h +++ b/include/sys/cbprintf_cxx.h @@ -11,6 +11,7 @@ /* C++ version for detecting a pointer to a string. */ static inline int z_cbprintf_cxx_is_pchar(char *, bool const_as_fixed) { + ARG_UNUSED(const_as_fixed); return 1; }