VirtualBox

Ignore:
Timestamp:
Aug 8, 2023 1:56:56 PM (19 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158718
Message:

Runtime/r0drv/solaris/semeventwait: Silence a Solaris-specific spurious
gcc -Wmaybe-uninitialized warning in rtR0SemSolWaitDoIt(). gcc 13.1
emits: "warning: ‘u.idCo’ may be used uninitialized [-Wmaybe-uninitialized]:
413 | untimeout(u.idTom);". The gcc manpage explains that its uninitialized
variable usage analysis is indeterminate and hence uses 'maybe': "the
compiler emits a warning if it cannot prove the uninitialized paths are
not executed at run time". In this case the code is fine as-is and thus
this is a false positive but we initialize 'u.idCo' anyways to silence gcc.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette