Skip to content

Commit 2f808f6

Browse files
committed
Suppress constParameterPointer warning on t parameter to Lua::run
1 parent 4c4940e commit 2f808f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/engine/lua.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const char *Lua::blob_reader(lua_State *L, void *ud, size_t *size) {
121121
#endif
122122

123123

124-
int Lua::run(const Transaction *t, const std::string &str) {
124+
int Lua::run(Transaction *t, const std::string &str) {
125125
#ifdef WITH_LUA
126126
std::string luaRet;
127127
const char *a = NULL;

src/engine/lua.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class Lua {
6868
Lua() { }
6969

7070
bool load(const std::string &script, std::string *err); // cppcheck-suppress functionStatic ; triggered when compiling without LUA
71-
int run(const Transaction *t, const std::string &str = ""); // cppcheck-suppress functionStatic ; triggered when compiling without LUA
71+
int run(Transaction *t, const std::string &str = ""); // cppcheck-suppress[functionStatic,constParameterPointer]
7272
static bool isCompatible(const std::string &script, Lua *l, std::string *error);
7373

7474
#ifdef WITH_LUA

0 commit comments

Comments
 (0)