Skip to content

Commit 774d9c1

Browse files
CopilotBernardXiong
andcommitted
Suppress cppcheck preprocessorErrorDirective for FLT_RADIX check
Co-authored-by: BernardXiong <[email protected]>
1 parent c351ee5 commit 774d9c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/klibc/rt_vsnprintf_std.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ typedef unsigned int printf_size_t;
222222
#if defined(RT_KLIBC_USING_VSNPRINTF_DECIMAL_SPECIFIERS) || defined(RT_KLIBC_USING_VSNPRINTF_EXPONENTIAL_SPECIFIERS)
223223
#include <float.h>
224224
#if FLT_RADIX != 2
225+
// cppcheck-suppress preprocessorErrorDirective
225226
#error "Non-binary-radix floating-point types are unsupported."
226227
#endif
227228

0 commit comments

Comments
 (0)