Fix static code analysis

This commit is contained in:
Vivek Kumar Dutta 2026-02-24 09:52:19 +05:30 committed by Vivek Dutta
parent 7049e0e9c4
commit 715f2c85ef
3 changed files with 5 additions and 1 deletions

View file

@ -3,6 +3,7 @@ variables:
#VERBOSE: true
SOURCE_FOLDER: "."
COMPILATION_FIXUP: "cmake ."
CPPCHECK_OPTIONS: "--suppress=*:*/usr/include/*"
include:
- project: 'iopsys/gitlab-ci-pipeline'

3
.inferconfig Normal file
View file

@ -0,0 +1,3 @@
{
"suppress_errors": ["DEAD_STORE"]
}

View file

@ -1011,7 +1011,7 @@ int load_xml_list_node_data(int node_ref, xmlNode *node, struct xml_data_struct
return CWMP_OK;
}
bool validate_xml_node_opaque_value(char *node_name, char *opaque, struct xml_tag_validation *validations, int nbre_validations)
bool validate_xml_node_opaque_value(const char *node_name, char *opaque, struct xml_tag_validation *validations, int nbre_validations)
{
int i;
if (node_name == NULL) {