Warn for type mismatch for gmx printf like functions 3/3
[alexxy/gromacs.git] / src / gromacs / utility / fatalerror.cpp
index c3dfac65f86ea22c24085ac475a4ae60b713724f..bfb27986b821845294971f2c2c104735611eeaa0 100644 (file)
@@ -226,7 +226,7 @@ void gmx_fatal_mpi_va(int /*f_errno*/, const char *file, int line,
     gmx_exit_on_fatal_error(exitType, 1);
 }
 
-void gmx_fatal(int f_errno, const char *file, int line, const char *fmt, ...)
+void gmx_fatal(int f_errno, const char *file, int line, gmx_fmtstr const char *fmt, ...)
 {
     va_list ap;
     va_start(ap, fmt);
@@ -264,7 +264,7 @@ void _range_check(int n, int n_min, int n_max, const char *warn_str,
     }
 }
 
-void gmx_warning(const char *fmt, ...)
+void gmx_warning(gmx_fmtstr const char *fmt, ...)
 {
     va_list ap;
     char    msg[STRLEN];