Warn for type mismatch for gmx printf like functions 2/3
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_wham.cpp
index 395d9e96deb51234b9e9de12af56ffc91858d46a..a47e10c4e3b5d6ac8b86a17c8e78db574eb2fc3a 100644 (file)
@@ -417,7 +417,7 @@ static void setup_tab(const char *fn, t_UmbrellaOptions *opt)
     {
         if  (std::abs(y[0][i+1]-y[0][i]-opt->tabDz) > opt->tabDz/1e6)
         {
-            gmx_fatal(FARGS, "z-values in %d are not equally spaced.\n", ny, fn);
+            gmx_fatal(FARGS, "z-values in %s are not equally spaced.\n", fn);
         }
     }
     snew(opt->tabY, nl);
@@ -1871,7 +1871,7 @@ static FILE *open_pdo_pipe(const char *fn, t_UmbrellaOptions *opt, gmx_bool *bPi
             {
                 gmx_fatal(FARGS, "Cannot find executable gunzip in /bin or /usr/bin.\n"
                           "You may want to define the path to gunzip "
-                          "with the environment variable GMX_PATH_GZIP.", gunzip);
+                          "with the environment variable GMX_PATH_GZIP.");
             }
         }
         else
@@ -2126,7 +2126,7 @@ static void read_tpr_header(const char *fn, t_UmbrellaHeader* header, t_Umbrella
             }
             if (header->pcrd[i].k <= 0.0)
             {
-                gmx_fatal(FARGS, "%s: Pull coordinate %d has force constant of of %g in %s.\n"
+                gmx_fatal(FARGS, "%s: Pull coordinate %d has force constant of of %g.\n"
                           "That doesn't seem to be an Umbrella tpr.\n",
                           fn, i+1, header->pcrd[i].k);
             }