From: Florian Krohm Date: Sun, 17 Jan 2016 20:34:53 +0000 (+0000) Subject: Followup to r15762. Add missing type in cast expression. X-Git-Tag: svn/VALGRIND_3_12_0~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=638908680614413c18d0eae90c30c4aa5e1f6c6c;p=thirdparty%2Fvalgrind.git Followup to r15762. Add missing type in cast expression. Do not use C++ comments. They are not allowed in this file. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15763 --- diff --git a/include/valgrind.h b/include/valgrind.h index 835c92697f..18fc4c187c 100644 --- a/include/valgrind.h +++ b/include/valgrind.h @@ -6759,7 +6759,7 @@ __inline VALGRIND_PRINTF(const char *format, ...) { #if defined(NVALGRIND) - if (format) *(volatile const *)format; // avoid compiler warning + if (format) *(volatile const char *)format; /* avoid compiler warning */ return 0; #else /* NVALGRIND */ #if defined(_MSC_VER) || defined(__MINGW64__) @@ -6798,7 +6798,7 @@ __inline VALGRIND_PRINTF_BACKTRACE(const char *format, ...) { #if defined(NVALGRIND) - if (format) *(volatile const *)format; // avoid compiler warning + if (format) *(volatile const char *)format; /* avoid compiler warning */ return 0; #else /* NVALGRIND */ #if defined(_MSC_VER) || defined(__MINGW64__)