[libc-commits] [libc] [libc][NFC] Fix minor RPC warnings (PR #192997)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Apr 22 08:23:06 PDT 2026
================
@@ -301,10 +301,16 @@ template <typename ArgProvider> struct MicroParser {
SizeArgument size_pos = SizeArgument::finished;
};
+// The format strings were already checked and warned on the device side.
----------------
jhuber6 wrote:
As far as I can tell, there's no way to wrangle the attributes to make the compiler stop complaining about this. This only shows up with `-Wformat` and the expectation is that the GPU-side printf would have warned on it already, so we are just faithfully recreating what the user encoded. The alternative would be type punning to defeat the pattern matching, and this only shows up with `-Wformat`, so I figured this was the "honest" solution.
https://github.com/llvm/llvm-project/pull/192997
More information about the libc-commits
mailing list