Task #118959 - fixed.err
back to task #118959download
Error: COMPILER_WARNING (CWE-704):
iptables-1.8.11/extensions/libxt_sctp.c: scope_hint: In function ‘parse_sctp_chunk’
iptables-1.8.11/extensions/libxt_sctp.c:211:40: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 211 | if ((p = strchr(sctp_chunk_names[i].valid_flags,
# | ^
# 209| int bit;
# 210|
# 211|-> if ((p = strchr(sctp_chunk_names[i].valid_flags,
# 212| toupper(chunk_flags[j]))) != NULL) {
# 213| bit = p - sctp_chunk_names[i].valid_flags;
Error: COMPILER_WARNING (CWE-704):
iptables-1.8.11/extensions/libxt_sctp.c:211:40: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 209| int bit;
# 210|
# 211|-> if ((p = strchr(sctp_chunk_names[i].valid_flags,
# 212| toupper(chunk_flags[j]))) != NULL) {
# 213| bit = p - sctp_chunk_names[i].valid_flags;
Error: COMPILER_WARNING (CWE-704):
iptables-1.8.11/iptables/xshared.c: scope_hint: In function ‘parse_rule_range’
iptables-1.8.11/iptables/xshared.c:912:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 912 | char *colon = strchr(argv, ':'), *buffer;
# | ^~~~~~
# 910| static void parse_rule_range(struct xt_cmd_parse *p, const char *argv)
# 911| {
# 912|-> char *colon = strchr(argv, ':'), *buffer;
# 913|
# 914| if (colon) {
Error: COMPILER_WARNING (CWE-704):
iptables-1.8.11/iptables/xshared.c:912:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 910| static void parse_rule_range(struct xt_cmd_parse *p, const char *argv)
# 911| {
# 912|-> char *colon = strchr(argv, ':'), *buffer;
# 913|
# 914| if (colon) {
Error: COMPILER_WARNING (CWE-704):
iptables-1.8.11/libxtables/xtables.c: scope_hint: In function 'xtables_ipparse_multiple'
iptables-1.8.11/libxtables/xtables.c:1770:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 1770 | next = strchr(loop, ',');
# | ^
# 1768| while (isspace(*loop))
# 1769| ++loop;
# 1770|-> next = strchr(loop, ',');
# 1771| if (next != NULL)
# 1772| len = next - loop;
Error: COMPILER_WARNING (CWE-704):
iptables-1.8.11/libxtables/xtables.c:1770:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 1768| while (isspace(*loop))
# 1769| ++loop;
# 1770|-> next = strchr(loop, ',');
# 1771| if (next != NULL)
# 1772| len = next - loop;
Error: COMPILER_WARNING (CWE-704):
iptables-1.8.11/libxtables/xtables.c: scope_hint: In function 'xtables_ip6parse_multiple'
iptables-1.8.11/libxtables/xtables.c:2069:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2069 | next = strchr(loop, ',');
# | ^
# 2067| while (isspace(*loop))
# 2068| ++loop;
# 2069|-> next = strchr(loop, ',');
# 2070| if (next != NULL)
# 2071| len = next - loop;
Error: COMPILER_WARNING (CWE-704):
iptables-1.8.11/libxtables/xtables.c:2069:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2067| while (isspace(*loop))
# 2068| ++loop;
# 2069|-> next = strchr(loop, ',');
# 2070| if (next != NULL)
# 2071| len = next - loop;