Task #132643 - fixed.err

back to task #132643
download
Error: COMPILER_WARNING (CWE-704):
python-systemd-235/systemd/util.c: scope_hint: In function ‘parse_sockaddr’
python-systemd-235/systemd/util.c:122:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  122 |                 e = strchr(s+1, ']');
#      |                   ^
#  120|                   /* IPv6 in [x:.....:z]:p notation */
#  121|   
#  122|->                 e = strchr(s+1, ']');
#  123|                   if (!e)
#  124|                           return -EINVAL;

Error: COMPILER_WARNING (CWE-704):
python-systemd-235/systemd/util.c:122:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  120|                   /* IPv6 in [x:.....:z]:p notation */
#  121|   
#  122|->                 e = strchr(s+1, ']');
#  123|                   if (!e)
#  124|                           return -EINVAL;

Error: COMPILER_WARNING (CWE-704):
python-systemd-235/systemd/util.c:152:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  152 |                 e = strchr(s, ':');
#      |                   ^
#  150|   
#  151|           } else {
#  152|->                 e = strchr(s, ':');
#  153|                   if (e) {
#  154|                           r = safe_atou(e+1, &u);

Error: COMPILER_WARNING (CWE-704):
python-systemd-235/systemd/util.c:152:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  150|   
#  151|           } else {
#  152|->                 e = strchr(s, ':');
#  153|                   if (e) {
#  154|                           r = safe_atou(e+1, &u);