tycho: silence warnings for format security

master
an 2019-07-03 19:25:55 -04:00
parent e90e4df392
commit 790dc9f840
1 changed files with 7 additions and 0 deletions

View File

@ -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)