Skip to content

Commit

Permalink
Fixed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
StiviiK committed Sep 11, 2019
1 parent dc75c2e commit f61ae1e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions module/CFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ int CFunctions::redis_create_client(lua_State* lua_vm)
} else {
lua_pushboolean(lua_vm, false);
}
} catch(std::bad_any_cast& e)
} catch(std::bad_any_cast&)
{
printf(e.what());
lua_pushboolean(lua_vm, false);
}

Expand Down Expand Up @@ -154,7 +153,7 @@ int CFunctions::redis_connect(lua_State* lua_vm)
} else {
lua_pushboolean(lua_vm, false);
}
} catch(std::bad_any_cast& e)
} catch(std::bad_any_cast&)
{
lua_pushboolean(lua_vm, false);
}
Expand Down Expand Up @@ -227,7 +226,7 @@ int CFunctions::redis_disconnect(lua_State* lua_vm)
} else {
lua_pushboolean(lua_vm, false);
}
} catch(std::bad_any_cast& e)
} catch(std::bad_any_cast&)
{
lua_pushboolean(lua_vm, false);
}
Expand Down Expand Up @@ -307,7 +306,7 @@ int CFunctions::redis_set(lua_State* lua_vm)
} else {
lua_pushboolean(lua_vm, false);
}
} catch(std::bad_any_cast& e)
} catch(std::bad_any_cast&)
{
lua_pushboolean(lua_vm, false);
}
Expand Down Expand Up @@ -386,7 +385,7 @@ int CFunctions::redis_get(lua_State* lua_vm)
} else {
lua_pushboolean(lua_vm, false);
}
} catch(std::bad_any_cast& e)
} catch(std::bad_any_cast&)
{
lua_pushboolean(lua_vm, false);
}
Expand Down

0 comments on commit f61ae1e

Please sign in to comment.