From 790dc9f8402b496864c4468827cc49c965ee0e3e Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Wed, 3 Jul 2019 19:25:55 -0400 Subject: [PATCH] tycho: silence warnings for format security --- tycho/cc/tycho.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tycho/cc/tycho.h b/tycho/cc/tycho.h index 4c413d4..1013f91 100644 --- a/tycho/cc/tycho.h +++ b/tycho/cc/tycho.h @@ -155,6 +155,11 @@ private: ProjectView *const view; }; +// Functions -----------------------------------------------------------------| + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wformat-security" + template 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)