format not a string literal and no format arguments [-Wformat-security]
问题 I am not sure what is causing this error ./lhapdf_wrap.cc: In function ‘void SWIG_Python_AddErrorMsg(const char*)’: ./lhapdf_wrap.cc:877:62: warning: too many arguments for format [-Wformat-extra-args] PyErr_Format(type, "%s", PyString_AsString(old_str), mesg); ^ ./lhapdf_wrap.cc:881:42: warning: format not a string literal and no format arguments [-Wformat-security] PyErr_Format(PyExc_RuntimeError, mesg); ^ The code is: SWIGRUNTIME void SWIG_Python_AddErrorMsg(const char* mesg) { PyObject