Task #132176 - fixed.err

back to task #132176
download
Error: SHELLCHECK_WARNING (CWE-457):
/usr/lib/dracut/modules.d/50ostree/module-setup.sh:49:15: warning[SC2154]: initdir is referenced but not assigned.
#   47|       fi
#   48|       inst_simple "${systemdsystemunitdir}/ostree-prepare-root.service"
#   49|->     mkdir -p "${initdir}${systemdsystemconfdir}/initrd-root-fs.target.wants"
#   50|       ln_r "${systemdsystemunitdir}/ostree-prepare-root.service" \
#   51|           "${systemdsystemconfdir}/initrd-root-fs.target.wants/ostree-prepare-root.service"

Error: SHELLCHECK_WARNING (CWE-457):
/usr/lib/dracut/modules.d/50ostree/module-setup.sh:49:25: warning[SC2154]: systemdsystemconfdir is referenced but not assigned.
#   47|       fi
#   48|       inst_simple "${systemdsystemunitdir}/ostree-prepare-root.service"
#   49|->     mkdir -p "${initdir}${systemdsystemconfdir}/initrd-root-fs.target.wants"
#   50|       ln_r "${systemdsystemunitdir}/ostree-prepare-root.service" \
#   51|           "${systemdsystemconfdir}/initrd-root-fs.target.wants/ostree-prepare-root.service"

Error: COMPILER_WARNING:
libostree-2025.7/src/libostree/ostree-repo-static-delta-core.c: scope_hint: In function '_ostree_delta_get_endianness'
libostree-2025.7/src/libostree/ostree-repo-static-delta-core.c:820:11: warning[-Wunused-but-set-variable=]: variable 'total_usize' set but not used
#  820 |   guint64 total_usize = 0;
#      |           ^~~~~~~~~~~
#  818|   
#  819|     guint64 total_size = 0;
#  820|->   guint64 total_usize = 0;
#  821|     guint total_objects = 0;
#  822|     {

Error: COMPILER_WARNING (CWE-704):
libostree-2025.7/src/ostree/ostree-trivial-httpd.c: scope_hint: In function ‘do_get’
libostree-2025.7/src/ostree/ostree-trivial-httpd.c:402:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  402 |       slash = strrchr (path, '/');
#      |             ^
#  400|     if (S_ISDIR (stbuf.st_mode))
#  401|       {
#  402|->       slash = strrchr (path, '/');
#  403|         if (!slash || slash[1])
#  404|           {

Error: COMPILER_WARNING (CWE-704):
libostree-2025.7/src/ostree/ostree-trivial-httpd.c:402:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  400|     if (S_ISDIR (stbuf.st_mode))
#  401|       {
#  402|->       slash = strrchr (path, '/');
#  403|         if (!slash || slash[1])
#  404|           {