From 2a9fa23e06b1fc0b7fab7a3e29ff1b17e325da7f Mon Sep 17 00:00:00 2001 From: Allard Hendriksen Date: Fri, 18 Aug 2023 20:38:27 +0200 Subject: [PATCH] Avoid cute::print compiler warnings with -Wformat-security (#1041) Fixes issue #1040. --- include/cute/util/print.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/cute/util/print.hpp b/include/cute/util/print.hpp index 88d2a930..f585bf31 100644 --- a/include/cute/util/print.hpp +++ b/include/cute/util/print.hpp @@ -145,4 +145,10 @@ print(T const&... t) { (print(t), ...); } +CUTE_HOST_DEVICE +void +print(char const* format) { + printf("%s", format); +} + } // end namespace cute