update(userspace) fix cppcheck warnings

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce
2022-10-12 09:20:44 +00:00
committed by poiana
parent 3629c4dc4a
commit 57b26530b6
6 changed files with 28 additions and 6 deletions

View File

@@ -167,7 +167,7 @@ namespace rule_loader
struct warning
{
warning(): ctx("no-filename-given") {}
warning(): wc(falco::load_result::warning_code::LOAD_UNKNOWN_SOURCE), ctx("no-filename-given") {}
warning(
falco::load_result::warning_code w,
const std::string& m,
@@ -184,7 +184,7 @@ namespace rule_loader
struct error
{
error(): ctx("no-filename-given") {}
error(): ec(falco::load_result::error_code::LOAD_ERR_FILE_READ), ctx("no-filename-given") {}
error(
falco::load_result::error_code e,
const std::string& m,