Task #109946 - fixed.err
back to task #109946download
Error: COMPILER_WARNING (CWE-704):
crun-HEAD/src/libcrun/cgroup-systemd.c: scope_hint: In function 'get_systemd_scope_and_slice'
crun-HEAD/src/libcrun/cgroup-systemd.c:125:5: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 125 | n = strchr (cgroup_path, ':');
# | ^
# 123| }
# 124|
# 125|-> n = strchr (cgroup_path, ':');
# 126| if (n == NULL)
# 127| xasprintf (scope, "%s.scope", cgroup_path);
Error: COMPILER_WARNING (CWE-704):
crun-HEAD/src/libcrun/cgroup-systemd.c: scope_hint: In function 'append_systemd_annotation'
crun-HEAD/src/libcrun/cgroup-systemd.c:641:11: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 641 | end = strchr (it + 1, '\'');
# | ^
# 639| it = v_start = xstrdup (value);
# 640|
# 641|-> end = strchr (it + 1, '\'');
# 642| if (end == NULL)
# 643| return crun_make_error (err, 0, "invalid variant `%s`", value);
Error: COMPILER_WARNING (CWE-704):
crun-HEAD/src/libcrun/error.c: scope_hint: In function 'get_log_type'
crun-HEAD/src/libcrun/error.c:194:15: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 192| get_log_type (const char *log, const char **data)
# 193| {
# 194|-> char *sep = strchr (log, ':');
# 195| if (sep == NULL)
# 196| {
Error: COMPILER_WARNING (CWE-704):
crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'crun_safe_ensure_at'
crun-HEAD/src/libcrun/utils.c:578:10: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 576| cur = consume_slashes (it + 1);
# 577| *it = '/';
# 578|-> it = strchr (cur, '/');
# 579| }
# 580|