]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Followup to r15762. Add missing type in cast expression.
authorFlorian Krohm <florian@eich-krohm.de>
Sun, 17 Jan 2016 20:34:53 +0000 (20:34 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Sun, 17 Jan 2016 20:34:53 +0000 (20:34 +0000)
Do not use C++ comments. They are not allowed in this file.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15763

include/valgrind.h

index 835c92697f7440a4e92c35da44b1d3a2890f2f5a..18fc4c187cf79197369be5bb0b9ee8d200485043 100644 (file)
@@ -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__)