[offload] `gnu::format` with variadic template functions is Clang-only (#124406)
commit359a9131704277bce0f806de31ac887e68a66902
authorMichał Górny <mgorny@gentoo.org>
Sun, 2 Feb 2025 15:55:22 +0000 (2 16:55 +0100)
committerGitHub <noreply@github.com>
Sun, 2 Feb 2025 15:55:22 +0000 (2 15:55 +0000)
treec69e8db398e864e1143934b5ce22c87534344132
parent3e5640b22d3978571816b9a0468a4aed27cdd82c
[offload] `gnu::format` with variadic template functions is Clang-only (#124406)

Use `gnu::format` attribute only when compiling with Clang, as using it
against variadic template functions is a Clang extension and is not
supported by GCC.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77958

Fixes #119069
offload/plugins-nextgen/common/include/ErrorReporting.h