diff --git a/src/engine/lua.cc b/src/engine/lua.cc index df7836298..cf9297a40 100644 --- a/src/engine/lua.cc +++ b/src/engine/lua.cc @@ -121,7 +121,7 @@ const char *Lua::blob_reader(lua_State *L, void *ud, size_t *size) { #endif -int Lua::run(const Transaction *t, const std::string &str) { +int Lua::run(Transaction *t, const std::string &str) { #ifdef WITH_LUA std::string luaRet; const char *a = NULL; diff --git a/src/engine/lua.h b/src/engine/lua.h index b954a29ad..ec73b09e2 100644 --- a/src/engine/lua.h +++ b/src/engine/lua.h @@ -68,7 +68,7 @@ class Lua { Lua() { } bool load(const std::string &script, std::string *err); // cppcheck-suppress functionStatic ; triggered when compiling without LUA - int run(const Transaction *t, const std::string &str = ""); // cppcheck-suppress functionStatic ; triggered when compiling without LUA + int run(Transaction *t, const std::string &str = ""); // cppcheck-suppress[functionStatic,constParameterPointer] static bool isCompatible(const std::string &script, Lua *l, std::string *error); #ifdef WITH_LUA