cbprintf: Fix unused arg warning
This was found when building with `-Wextra` enabled. Signed-off-by: Yuval Peress <peress@google.com>
This commit is contained in:
parent
50a89ce287
commit
e84a48d8b8
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue