https://bugs.kde.org/show_bug.cgi?id=356817

--- Comment #1 from Matthias Schwarzott <z...@gentoo.org> ---
Created attachment 96139
  --> https://bugs.kde.org/attachment.cgi?id=96139&action=edit
valgrind-h-fix-MSVC-warning-v1

This patch fixes the issue.
But it looks a bit complicated.
It defines two different versions for VALGRIND_PRINTF depending on if compiler
is gcc (understands __attribute__(unused) or not).
Maybe it would be simpler to just have this version for all compilers in case
of NVALGRIND:
static int
#if defined(_MSC_VER)
__inline
#endif
VALGRIND_PRINTF(...)
{
   return 0;
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to