Skip to content

Commit

Permalink
Suppress constParameterPointer warning on t parameter to Lua::run
Browse files Browse the repository at this point in the history
  • Loading branch information
eduar-hte committed Apr 29, 2024
1 parent 515efef commit d7366ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/engine/lua.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/engine/lua.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7366ec

Please sign in to comment.