anaconda-42.12-1.20241107140523552711.pr5739.27.g63395ca8f2

List of Findings

Error: SHELLCHECK_WARNING (CWE-457): [#def1]
/usr/lib/dracut/modules.d/80anaconda/anaconda-diskroot:86:21: warning[SC2154]: repodir is referenced but not assigned.
#   84|   
#   85|   info "anaconda using disk root at $dev"
#   86|-> mount -o ro "$dev" "$repodir" || warn "Couldn't mount $dev"
#   87|   anaconda_live_root_dir "$repodir" "$path"
#   88|   run_checkisomd5 "$dev"

Error: SHELLCHECK_WARNING (CWE-457): [#def2]
/usr/lib/dracut/modules.d/80anaconda/anaconda-hmcroot:18:24: warning[SC2154]: repodir is referenced but not assigned.
#   16|   if /usr/sbin/lshmc ; then
#   17|       info "Anaconda using SE/HMC file access to root."
#   18|->     /usr/bin/hmcdrvfs "$repodir" || warn "Couldn't mount /dev/hmcdrv"
#   19|       anaconda_live_root_dir "$repodir"
#   20|   else

Error: SHELLCHECK_WARNING (CWE-457): [#def3]
/usr/lib/dracut/modules.d/80anaconda/anaconda-lib.sh:158:40: warning[SC2154]: hookdir is referenced but not assigned.
#  156|               printf "mount -t overlay LiveOS_rootfs \
#  157|                      -o lowerdir=/run/rootfsbase,upperdir=/run/overlayfs,workdir=/run/ovlwork \
#  158|->                    %s" "${NEWROOT}" > "${hookdir}/mount/01-$$-anaconda.sh"
#  159|           else
#  160|               # Otherwise, assumption is that /dev/mapper/live-rw should have been created.

Error: SHELLCHECK_WARNING (CWE-457): [#def4]
/usr/lib/dracut/modules.d/80anaconda/anaconda-lib.sh:307:11: warning[SC2154]: parsed_kickstart is referenced but not assigned.
#  305|       unset CMDLINE  # re-read the commandline
#  306|       . /tmp/ks.info # save the parsed kickstart
#  307|->     [ -e "$parsed_kickstart" ] && cp "$parsed_kickstart" /run/install/ks.cfg
#  308|   }
#  309|   

Error: SHELLCHECK_WARNING (CWE-457): [#def5]
/usr/lib/dracut/modules.d/80anaconda/anaconda-netroot.sh:12:15: warning[SC2154]: root is referenced but not assigned.
#   10|   
#   11|   # get repo info
#   12|-> splitsep ":" "$root" prefix repo
#   13|   
#   14|   # repo not set? make sure we are using fresh repo information

Error: SHELLCHECK_WARNING (CWE-457): [#def6]
/usr/lib/dracut/modules.d/80anaconda/anaconda-netroot.sh:16:9: warning[SC2154]: hookdir is referenced but not assigned.
#   14|   # repo not set? make sure we are using fresh repo information
#   15|   if [ -z "$repo" ]; then
#   16|->      . "$hookdir"/cmdline/*parse-anaconda-repo.sh
#   17|        splitsep ":" "$root" prefix repo
#   18|   fi

Error: SHELLCHECK_WARNING (CWE-457): [#def7]
/usr/lib/dracut/modules.d/80anaconda/anaconda-netroot.sh:21:4: warning[SC2154]: prefix is referenced but not assigned.
#   19|   
#   20|   # no repo? non-net root? we're not needed here.
#   21|-> [ "$prefix" = "anaconda-net" ] && [ -n "$repo" ] || return 0
#   22|   # already done? don't run again.
#   23|   [ -e /dev/root ] && return 0

Error: SHELLCHECK_WARNING (CWE-457): [#def8]
/usr/lib/dracut/modules.d/80anaconda/anaconda-netroot.sh:49:26: warning[SC2154]: options is referenced but not assigned.
#   47|               repo=nfs:${repo#nfs4:}
#   48|               nfs_to_var "$repo" "$netif"
#   49|->             if ! strstr "$options" "vers="; then
#   50|                   repo="nfs:${options:+$options,}nfsvers=4:$server:$path"
#   51|               fi

Error: SHELLCHECK_WARNING (CWE-457): [#def9]
/usr/lib/dracut/modules.d/80anaconda/anaconda-netroot.sh:50:58: warning[SC2154]: server is referenced but not assigned.
#   48|               nfs_to_var "$repo" "$netif"
#   49|               if ! strstr "$options" "vers="; then
#   50|->                 repo="nfs:${options:+$options,}nfsvers=4:$server:$path"
#   51|               fi
#   52|           else

Error: SHELLCHECK_WARNING (CWE-457): [#def10]
/usr/lib/dracut/modules.d/80anaconda/anaconda-netroot.sh:50:66: warning[SC2154]: path is referenced but not assigned.
#   48|               nfs_to_var "$repo" "$netif"
#   49|               if ! strstr "$options" "vers="; then
#   50|->                 repo="nfs:${options:+$options,}nfsvers=4:$server:$path"
#   51|               fi
#   52|           else

Error: SHELLCHECK_WARNING (CWE-457): [#def11]
/usr/lib/dracut/modules.d/80anaconda/anaconda-netroot.sh:62:32: warning[SC2154]: repodir is referenced but not assigned.
#   60|           fi
#   61|           if [ "${repo%.iso}" == "$repo" ]; then
#   62|->             mount_nfs "$repo" "$repodir" "$netif" || warn "Couldn't mount $repo"
#   63|               anaconda_live_root_dir "$repodir"
#   64|           else

Error: SHELLCHECK_WARNING (CWE-457): [#def12]
/usr/lib/dracut/modules.d/80anaconda/anaconda-pre-shutdown.sh:18:12: warning[SC2154]: repodir is referenced but not assigned.
#   16|   . /lib/anaconda-lib.sh
#   17|   
#   18|-> for mnt in $repodir $isodir; do
#   19|       # systemd-shutdown puts old root at /oldroot
#   20|       oldmnt=/oldroot$mnt

Error: SHELLCHECK_WARNING (CWE-457): [#def13]
/usr/lib/dracut/modules.d/80anaconda/anaconda-pre-shutdown.sh:18:21: warning[SC2154]: isodir is referenced but not assigned.
#   16|   . /lib/anaconda-lib.sh
#   17|   
#   18|-> for mnt in $repodir $isodir; do
#   19|       # systemd-shutdown puts old root at /oldroot
#   20|       oldmnt=/oldroot$mnt

Error: SHELLCHECK_WARNING (CWE-457): [#def14]
/usr/lib/dracut/modules.d/80anaconda/driver-updates-genrules.sh:39:55: warning[SC2154]: dd_type is referenced but not assigned.
#   37|           if [ "${dd##*.}" = "rpm" ]; then
#   38|               splitsep ":" "$dd" dd_type dd_dev dd_path
#   39|->             when_diskdev_appears "$(disk_to_dev_path "$dd_type")" \
#   40|                   driver-updates --disk "$dd_whitespace_fix" \$devnode "$dd_dev"
#   41|           else

Error: SHELLCHECK_WARNING (CWE-457): [#def15]
/usr/lib/dracut/modules.d/80anaconda/driver-updates-genrules.sh:40:71: warning[SC2154]: dd_dev is referenced but not assigned.
#   38|               splitsep ":" "$dd" dd_type dd_dev dd_path
#   39|               when_diskdev_appears "$(disk_to_dev_path "$dd_type")" \
#   40|->                 driver-updates --disk "$dd_whitespace_fix" \$devnode "$dd_dev"
#   41|           else
#   42|               when_diskdev_appears "$(disk_to_dev_path "$dd")" \

Error: SHELLCHECK_WARNING (CWE-457): [#def16]
/usr/lib/dracut/modules.d/80anaconda/driver-updates-genrules.sh:50:30: warning[SC2154]: hookdir is referenced but not assigned.
#   48|   
#   49|   # force us to wait at least until we've settled at least once
#   50|-> echo '> /tmp/settle.done' > "$hookdir/initqueue/settled/settle_done.sh"
#   51|   echo '[ -f /tmp/settle.done ]' > "$hookdir/initqueue/finished/wait_for_settle.sh"
#   52|   

Error: SHELLCHECK_WARNING (CWE-457): [#def17]
/usr/lib/dracut/modules.d/80anaconda/fetch-kickstart-net.sh:67:12: warning[SC2154]: hookdir is referenced but not assigned.
#   65|   # If we're doing sendmac, we need to run after anaconda-ks-sendheaders.sh
#   66|   if getargbool 0 inst.ks.sendmac kssendmac; then
#   67|->     newjob=$hookdir/initqueue/settled/fetch-ks-${netif}.sh
#   68|   else
#   69|       newjob=$hookdir/initqueue/fetch-ks-${netif}.sh

Error: SHELLCHECK_WARNING (CWE-457): [#def18]
/usr/lib/dracut/modules.d/80anaconda/kickstart-genrules.sh:13:15: warning[SC2154]: kstype is referenced but not assigned.
#   11|       cdrom|hd) # cdrom, cdrom:<path>, hd:<dev>:<path>
#   12|           splitsep ":" "$kickstart" kstype ksdev kspath
#   13|->         if [ "$kstype" = "cdrom" ] && [ -z "$kspath" ]; then
#   14|               kspath="$ksdev"
#   15|               when_any_cdrom_appears \

Error: SHELLCHECK_WARNING (CWE-457): [#def19]
/usr/lib/dracut/modules.d/80anaconda/kickstart-genrules.sh:31:62: warning[SC2154]: hookdir is referenced but not assigned.
#   29|               # feature.
#   30|               # See rbhz#2209599 for more info
#   31|->             echo "[ -e /tmp/ks.cfg.done ] || main_loop=0" > "$hookdir/initqueue/ks-cdrom-wait-forever.sh"
#   32|           fi
#   33|           wait_for_kickstart

Error: SHELLCHECK_WARNING (CWE-457): [#def20]
/usr/lib/dracut/modules.d/80anaconda/module-setup.sh:36:11: warning[SC2154]: moddir is referenced but not assigned.
#   34|   
#   35|       # anaconda
#   36|->     inst "$moddir/anaconda-lib.sh" "/lib/anaconda-lib.sh"
#   37|       inst_hook cmdline 25 "$moddir/parse-anaconda-options.sh"
#   38|       inst_hook cmdline 26 "$moddir/parse-anaconda-kickstart.sh"

Error: SHELLCHECK_WARNING (CWE-457): [#def21]
/usr/lib/dracut/modules.d/80anaconda/parse-anaconda-kickstart.sh:34:18: warning[SC2154]: kspath is referenced but not assigned.
#   32|       file|path) # "file:<path>" - "path:<path>" is accepted but deprecated
#   33|           splitsep ":" "$kickstart" kstype kspath
#   34|->         if [ -f "$kspath" ]; then
#   35|               info "anaconda: parsing kickstart $kspath"
#   36|               cp "$kspath" /tmp/ks.cfg

Error: SHELLCHECK_WARNING (CWE-457): [#def22]
/usr/lib/dracut/modules.d/80anaconda/parse-anaconda-options.sh:8:11: warning[SC2154]: repodir is referenced but not assigned.
#    6|   
#    7|   # create the repodir and isodir that anaconda will look for
#    8|-> mkdir -p "$repodir" "$isodir"
#    9|   
#   10|   # add some modules

Error: SHELLCHECK_WARNING (CWE-457): [#def23]
/usr/lib/dracut/modules.d/80anaconda/parse-anaconda-options.sh:8:22: warning[SC2154]: isodir is referenced but not assigned.
#    6|   
#    7|   # create the repodir and isodir that anaconda will look for
#    8|-> mkdir -p "$repodir" "$isodir"
#    9|   
#   10|   # add some modules

Error: SHELLCHECK_WARNING (CWE-457): [#def24]
/usr/lib/dracut/modules.d/80anaconda/parse-anaconda-repo.sh:24:11: warning[SC2154]: repotype is referenced but not assigned.
#   22|   if [ -n "$repo" ]; then
#   23|       splitsep ":" "$repo" repotype rest
#   24|->     case "$repotype" in
#   25|           http|https|ftp|nfs|nfs4)
#   26|               root="anaconda-net:$repo"

Error: SHELLCHECK_WARNING (CWE-457): [#def25]
/usr/lib/dracut/modules.d/80anaconda/repo-genrules.sh:7:7: warning[SC2154]: root is referenced but not assigned.
#    5|   . /lib/anaconda-lib.sh
#    6|   
#    7|-> case "$root" in
#    8|     anaconda-disk:*)
#    9|       # anaconda-disk:<device>[:<path>]

Error: SHELLCHECK_WARNING (CWE-457): [#def26]
/usr/lib/dracut/modules.d/80anaconda/repo-genrules.sh:13:45: warning[SC2154]: diskpath is referenced but not assigned.
#   11|       diskdev=$(disk_to_dev_path "$diskdev")
#   12|       when_diskdev_appears "$diskdev" \
#   13|->         anaconda-diskroot "\$env{DEVNAME}" "$diskpath"
#   14|     ;;
#   15|     anaconda-auto-cd)

Error: SHELLCHECK_WARNING (CWE-457): [#def27]
/usr/lib/dracut/modules.d/80anaconda/save-initramfs.sh:9:11: warning[SC2154]: repodir is referenced but not assigned.
#    7|   # First, check to see if we can find a copy of initramfs laying around
#    8|   for i in images/pxeboot/initrd.img ppc/ppc64/initrd.img images/initrd.img; do
#    9|->     [ -f "$repodir/$i" ] && initramfs=$repodir/$i && break
#   10|   done
#   11|   

Error: SHELLCHECK_WARNING (CWE-457): [#def28]
/usr/lib/dracut/modules.d/80anaconda/updates-genrules.sh:6:9: warning[SC2154]: anac_updates is referenced but not assigned.
#    4|   . /lib/anaconda-lib.sh
#    5|   
#    6|-> updates=$anac_updates
#    7|   [ -n "$updates" ] || return
#    8|   case $updates in

Error: SHELLCHECK_WARNING (CWE-457): [#def29]
/usr/lib/dracut/modules.d/80anaconda/updates-genrules.sh:21:74: warning[SC2154]: path is referenced but not assigned.
#   19|           splitsep ":" "$updates" dev path
#   20|           dev=$(disk_to_dev_path "$dev")
#   21|->         when_diskdev_appears "$dev" fetch-updates-disk "\$env{DEVNAME}" "$path"
#   22|           wait_for_updates
#   23|       ;;

Error: SHELLCHECK_WARNING (CWE-571): [#def30]
/usr/libexec/anaconda/log-capture:8:19: warning[SC2155]: Declare and assign separately to avoid masking return values.
#    6|   
#    7|   # shellcheck disable=SC2068
#    8|-> _to_log() { local OutputFile=$(tr ' /' '_' <<<"$@"); $@ >${OUTDIR}/${OutputFile}; }
#    9|   
#   10|   mkdir -p ${OUTDIR}

Error: SHELLCHECK_WARNING (CWE-252): [#def31]
/usr/libexec/anaconda/log-capture:11:1: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
#    9|   
#   10|   mkdir -p ${OUTDIR}
#   11|-> cd ${OUTDIR}
#   12|   
#   13|   if [[ ! -f /tmp/ks.cfg ]];then

Error: SHELLCHECK_WARNING (CWE-398): [#def32]
/usr/libexec/anaconda/start-module:15:14: warning[SC2163]: This does not export '2'. Remove $/${} for that, or use ${var?} to quiet.
#   13|       # Set up the environment.
#   14|       --env)
#   15|->       export $2
#   16|         shift 2
#   17|       ;;

Error: COMPILER_WARNING (CWE-477): [#def33]
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseStandalone.c: scope_hint: In function 'anaconda_base_standalone_class_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseStandalone.c:152:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseWindow.h:21: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseStandalone.c:20: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#  150|                                                           G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
#  151|   
#  152|->     g_type_class_add_private(object_class, sizeof(AnacondaBaseStandalonePrivate));
#  153|   
#  154|       gtk_widget_class_set_css_name(widget_class, "AnacondaBaseStandalone");

Error: COMPILER_WARNING: [#def34]
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseStandalone.c: scope_hint: In function 'anaconda_base_standalone_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseStandalone.c:160:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  158|       win->priv = G_TYPE_INSTANCE_GET_PRIVATE(win,
#  159|                                               ANACONDA_TYPE_BASE_STANDALONE,
#  160|->                                             AnacondaBaseStandalonePrivate);
#  161|   }
#  162|   

Error: COMPILER_WARNING (CWE-477): [#def35]
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseWindow.c: scope_hint: In function 'anaconda_base_window_class_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseWindow.c:235:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
#  235 |     g_type_class_add_private(object_class, sizeof(AnacondaBaseWindowPrivate));
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/LayoutIndicator.h:21: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseWindow.c:25: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
# 1497 | void     g_type_class_add_private       (gpointer                    g_class,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  233|                                                              G_TYPE_NONE, 0);
#  234|   
#  235|->     g_type_class_add_private(object_class, sizeof(AnacondaBaseWindowPrivate));
#  236|   
#  237|       gtk_widget_class_set_css_name(widget_class, "AnacondaBaseWindow");

Error: COMPILER_WARNING: [#def36]
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseWindow.c: scope_hint: In function 'anaconda_base_window_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseWindow.c:258:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  258 |                                             AnacondaBaseWindowPrivate);
#      |             ^                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~      
#  256|       win->priv = G_TYPE_INSTANCE_GET_PRIVATE(win,
#  257|                                               ANACONDA_TYPE_BASE_WINDOW,
#  258|->                                             AnacondaBaseWindowPrivate);
#  259|   
#  260|       win->priv->is_beta = FALSE;

Error: COMPILER_WARNING (CWE-477): [#def37]
anaconda-42.12-build/anaconda-42.12/widgets/src/DiskOverview.c: scope_hint: In function 'anaconda_disk_overview_class_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/DiskOverview.c:239:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/atk-1.0/atk/atk-enum-types.h:12: included_from: Included from here.
/usr/include/atk-1.0/atk/atk.h:25: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/DiskOverview.c:20: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#  237|                                                           G_PARAM_READWRITE));
#  238|   
#  239|->     g_type_class_add_private(object_class, sizeof(AnacondaDiskOverviewPrivate));
#  240|   
#  241|       gtk_widget_class_set_css_name(widget_class, "AnacondaDiskOverview");

Error: COMPILER_WARNING: [#def38]
anaconda-42.12-build/anaconda-42.12/widgets/src/DiskOverview.c: scope_hint: In function 'anaconda_disk_overview_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/DiskOverview.c:310:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  308|       widget->priv = G_TYPE_INSTANCE_GET_PRIVATE(widget,
#  309|                                                  ANACONDA_TYPE_DISK_OVERVIEW,
#  310|->                                                AnacondaDiskOverviewPrivate);
#  311|       gtk_widget_set_valign(GTK_WIDGET(widget), GTK_ALIGN_CENTER);
#  312|   

Error: COMPILER_WARNING (CWE-477): [#def39]
anaconda-42.12-build/anaconda-42.12/widgets/src/HubWindow.c: scope_hint: In function 'anaconda_hub_window_class_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/HubWindow.c:103:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
#  103 |     g_type_class_add_private(object_class, sizeof(AnacondaHubWindowPrivate));
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseStandalone.h:21: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/HubWindow.c:20: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
# 1497 | void     g_type_class_add_private       (gpointer                    g_class,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  101|       GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass);
#  102|   
#  103|->     g_type_class_add_private(object_class, sizeof(AnacondaHubWindowPrivate));
#  104|   
#  105|       gtk_widget_class_set_css_name(widget_class, "AnacondaHubWindow");

Error: COMPILER_WARNING: [#def40]
anaconda-42.12-build/anaconda-42.12/widgets/src/HubWindow.c: scope_hint: In function 'anaconda_hub_window_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/HubWindow.c:125:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  125 |                                             AnacondaHubWindowPrivate);
#      |             ^                               ~~~~~~~~~~~~~~~~~~~~~~~~~~       
#  123|       win->priv = G_TYPE_INSTANCE_GET_PRIVATE(win,
#  124|                                               ANACONDA_TYPE_HUB_WINDOW,
#  125|->                                             AnacondaHubWindowPrivate);
#  126|   
#  127|       win->priv->scrolled_window = gtk_scrolled_window_new(NULL, NULL);

Error: COMPILER_WARNING (CWE-477): [#def41]
anaconda-42.12-build/anaconda-42.12/widgets/src/LayoutIndicator.c: scope_hint: In function 'anaconda_layout_indicator_class_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/LayoutIndicator.c:137:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/atk-1.0/atk/atk-enum-types.h:12: included_from: Included from here.
/usr/include/atk-1.0/atk/atk.h:25: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/LayoutIndicator.c:22: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#  135|                                                         G_PARAM_READWRITE));
#  136|   
#  137|->     g_type_class_add_private(object_class, sizeof(AnacondaLayoutIndicatorPrivate));
#  138|   
#  139|       gtk_widget_class_set_css_name(widget_class, "AnacondaLayoutIndicator");

Error: COMPILER_WARNING: [#def42]
anaconda-42.12-build/anaconda-42.12/widgets/src/LayoutIndicator.c: scope_hint: In function 'anaconda_layout_indicator_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/LayoutIndicator.c:284:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  282|       self->priv = G_TYPE_INSTANCE_GET_PRIVATE(self,
#  283|                                                ANACONDA_TYPE_LAYOUT_INDICATOR,
#  284|->                                              AnacondaLayoutIndicatorPrivate);
#  285|   
#  286|       /* layout indicator should not change focus when it is clicked */

Error: COMPILER_WARNING (CWE-477): [#def43]
anaconda-42.12-build/anaconda-42.12/widgets/src/MountpointSelector.c: scope_hint: In function 'anaconda_mountpoint_selector_class_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/MountpointSelector.c:203:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/MountpointSelector.c:21: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#  201|                                             NULL);            // array of types, one for each parameter
#  202|   
#  203|->     g_type_class_add_private(object_class, sizeof(AnacondaMountpointSelectorPrivate));
#  204|   
#  205|       gtk_widget_class_set_css_name(widget_class, "AnacondaMountpointSelector");

Error: COMPILER_WARNING: [#def44]
anaconda-42.12-build/anaconda-42.12/widgets/src/MountpointSelector.c: scope_hint: In function 'anaconda_mountpoint_selector_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/MountpointSelector.c:228:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  226|       mountpoint->priv = G_TYPE_INSTANCE_GET_PRIVATE(mountpoint,
#  227|                                                      ANACONDA_TYPE_MOUNTPOINT_SELECTOR,
#  228|->                                                    AnacondaMountpointSelectorPrivate);
#  229|   
#  230|       /* Allow tabbing from one MountpointSelector to the next, and make sure it's

Error: COMPILER_WARNING (CWE-477): [#def45]
anaconda-42.12-build/anaconda-42.12/widgets/src/SpokeSelector.c: scope_hint: In function 'anaconda_spoke_selector_class_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/SpokeSelector.c:167:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/atk-1.0/atk/atk-enum-types.h:12: included_from: Included from here.
/usr/include/atk-1.0/atk/atk.h:25: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/SpokeSelector.c:20: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#  165|                                                           G_PARAM_READWRITE));
#  166|   
#  167|->     g_type_class_add_private(object_class, sizeof(AnacondaSpokeSelectorPrivate));
#  168|   
#  169|       gtk_widget_class_set_css_name(widget_class, "AnacondaSpokeSelector");

Error: COMPILER_WARNING: [#def46]
anaconda-42.12-build/anaconda-42.12/widgets/src/SpokeSelector.c: scope_hint: In function 'anaconda_spoke_selector_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/SpokeSelector.c:268:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  266|       spoke->priv = G_TYPE_INSTANCE_GET_PRIVATE(spoke,
#  267|                                                 ANACONDA_TYPE_SPOKE_SELECTOR,
#  268|->                                               AnacondaSpokeSelectorPrivate);
#  269|   
#  270|       /* Allow tabbing from one SpokeSelector to the next, and make sure it's

Error: COMPILER_WARNING (CWE-477): [#def47]
anaconda-42.12-build/anaconda-42.12/widgets/src/SpokeWindow.c: scope_hint: In function 'anaconda_spoke_window_class_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/SpokeWindow.c:100:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseWindow.h:21: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/SpokeWindow.c:20: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
#   98|                                                            G_TYPE_NONE, 0);
#   99|   
#  100|->     g_type_class_add_private(object_class, sizeof(AnacondaSpokeWindowPrivate));
#  101|   
#  102|       gtk_widget_class_set_css_name(widget_class, "AnacondaSpokeWindow");

Error: COMPILER_WARNING: [#def48]
anaconda-42.12-build/anaconda-42.12/widgets/src/SpokeWindow.c: scope_hint: In function 'anaconda_spoke_window_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/SpokeWindow.c:125:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  123|       win->priv = G_TYPE_INSTANCE_GET_PRIVATE(win,
#  124|                                               ANACONDA_TYPE_SPOKE_WINDOW,
#  125|->                                             AnacondaSpokeWindowPrivate);
#  126|   
#  127|       /* Create the button. */

Error: COMPILER_WARNING (CWE-477): [#def49]
anaconda-42.12-build/anaconda-42.12/widgets/src/StandaloneWindow.c: scope_hint: In function 'anaconda_standalone_window_class_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/StandaloneWindow.c:114:5: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
#  114 |     g_type_class_add_private(object_class, sizeof(AnacondaStandaloneWindowPrivate));
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/BaseStandalone.h:21: included_from: Included from here.
anaconda-42.12-build/anaconda-42.12/widgets/src/StandaloneWindow.c:20: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
# 1497 | void     g_type_class_add_private       (gpointer                    g_class,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  112|                                                           G_PARAM_READABLE));
#  113|   
#  114|->     g_type_class_add_private(object_class, sizeof(AnacondaStandaloneWindowPrivate));
#  115|   
#  116|       gtk_widget_class_set_css_name(widget_class, "AnacondaStandaloneWindow");

Error: COMPILER_WARNING: [#def50]
anaconda-42.12-build/anaconda-42.12/widgets/src/StandaloneWindow.c: scope_hint: In function 'anaconda_standalone_window_init'
anaconda-42.12-build/anaconda-42.12/widgets/src/StandaloneWindow.c:146:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  146 |                                             AnacondaStandaloneWindowPrivate);
#      |             ^                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  144|       win->priv = G_TYPE_INSTANCE_GET_PRIVATE(win,
#  145|                                               ANACONDA_TYPE_STANDALONE_WINDOW,
#  146|->                                             AnacondaStandaloneWindowPrivate);
#  147|   
#  148|       /* Create the buttons. */

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer14.2.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-89.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-nameanaconda-42.12-1.20241107140523552711.pr5739.27.g63395ca8f2
store-results-to/tmp/tmpjbo6wdfn/anaconda-42.12-1.20241107140523552711.pr5739.27.g63395ca8f2.tar.xz
time-created2024-11-07 14:14:55
time-finished2024-11-07 14:17:15
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpjbo6wdfn/anaconda-42.12-1.20241107140523552711.pr5739.27.g63395ca8f2.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpjbo6wdfn/anaconda-42.12-1.20241107140523552711.pr5739.27.g63395ca8f2.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9