Warn for type mismatch for gmx printf like functions 1/3
[alexxy/gromacs.git] / src / gromacs / awh / biasstate.cpp
index 9cd6a2ec8a5cb6b975962bc4e2b5dfae371052f7..029620dc070731fd364a230af710ee367e5646db 100644 (file)
@@ -1524,7 +1524,7 @@ static void readUserPmfAndTargetDistribution(const std::vector<DimParams> &dimPa
     if (numColumns < numColumnsMin)
     {
         std::string mesg =
-            gmx::formatString("The number of columns in %s (%d) should be at least %d."
+            gmx::formatString("The number of columns in %s (%s) should be at least %d."
                               "\n\n%s",
                               filename.c_str(), correctFormatMessage.c_str());
         GMX_THROW(InvalidInputError(mesg));
@@ -1570,7 +1570,7 @@ static void readUserPmfAndTargetDistribution(const std::vector<DimParams> &dimPa
         /* Check if the values are allowed. */
         if (target < 0)
         {
-            std::string mesg = gmx::formatString("Target distribution weight at point %d (%g) in %s is negative.",
+            std::string mesg = gmx::formatString("Target distribution weight at point %zu (%g) in %s is negative.",
                                                  m, target, filename.c_str());
             GMX_THROW(InvalidInputError(mesg));
         }