Skip to content

Commit

Permalink
cbprintf: Fix unused arg warning
Browse files Browse the repository at this point in the history
This was found when building with `-Wextra` enabled.

Signed-off-by: Yuval Peress <[email protected]>
  • Loading branch information
yperess authored and MaureenHelm committed Dec 14, 2021
1 parent 50a89ce commit e84a48d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/sys/cbprintf_cxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ static inline int z_cbprintf_cxx_is_pchar(const volatile wchar_t *, bool const_a
template < typename T >
static inline int z_cbprintf_cxx_is_pchar(T arg, bool const_as_fixed)
{
ARG_UNUSED(arg);
_Pragma("GCC diagnostic push")
_Pragma("GCC diagnostic ignored \"-Wpointer-arith\"")
ARG_UNUSED(const_as_fixed);
Expand Down

0 comments on commit e84a48d

Please sign in to comment.