Clans: clang compiler fix-ups

Signed-off-by: zeph <zephyrzefa15@gmail.com>
This commit is contained in:
zeph 2025-12-09 19:28:38 +01:00
parent fee3dff037
commit b2195bd6ff
No known key found for this signature in database

View File

@ -1,8 +1,21 @@
#include "stdafx.h"
#include <util/types.hpp>
// wolfssl uses old-style casts which break clang builds
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wold-style-cast"
#pragma clang diagnostic ignored "-Wextern-c-compat"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
#endif
#include <wolfssl/wolfcrypt/coding.h>
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#include <Crypto/utils.h>
#include <Utilities/StrUtil.h>
#include <Utilities/StrFmt.h>