Warn for type mismatch for gmx printf like functions 3/3
[alexxy/gromacs.git] / src / gromacs / gpu_utils / cudautils.cuh
index 6eabc3ce145d2403295fec220e47c8f3ea825c2e..dac92fa6fe70b45a40e838aef682cd5cf8c268a5 100644 (file)
@@ -85,7 +85,7 @@ static inline void ensureNoPendingCudaError(const char *errorMessage)
     GMX_ASSERT(stat == cudaSuccess, fullMessage.c_str());
     // TODO When we evolve a better logging framework, use that
     // for release-build error reporting.
-    gmx_warning(fullMessage.c_str());
+    gmx_warning("%s", fullMessage.c_str());
 }
 
 }   // namespace