tycho: silence warnings for format security
parent
e90e4df392
commit
790dc9f840
|
@ -155,6 +155,11 @@ private:
|
|||
ProjectView *const view;
|
||||
};
|
||||
|
||||
// Functions -----------------------------------------------------------------|
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wformat-security"
|
||||
|
||||
template<typename... VA>
|
||||
static inline void dbgPrint([[maybe_unused]] char const *fmt,
|
||||
[[maybe_unused]] VA &&...va)
|
||||
|
@ -164,6 +169,8 @@ static inline void dbgPrint([[maybe_unused]] char const *fmt,
|
|||
#endif
|
||||
}
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
#define dbgPrintFunc() dbgPrint("%s", __func__)
|
||||
|
||||
constexpr std::uint32_t fourCC(std::byte a, std::byte b, std::byte c, std::byte d)
|
||||
|
|
Loading…
Reference in New Issue