When building on Ubuntu 22.04 in Release mode, gcc complains that:
‘stact’ may be used uninitialized in this function [-Wmaybe-uninitialized] 2295
I think this is probably a false positive; in any situations
where stact was not set, we would have gotten out before this.
Regardless, just set stact to nullptr, which quiets the warning
and should have no deleterious effects.
When building on Ubuntu 22.04 in Release mode, gcc complains that:
‘stact’ may be used uninitialized in this function [-Wmaybe-uninitialized] 2295
I think this is probably a false positive; in any situations where stact was not set, we would have gotten out before this. Regardless, just set stact to nullptr, which quiets the warning and should have no deleterious effects.
Signed-off-by: Chris Lalancette clalancette@openrobotics.org
This should fix warnings from the nightlies like the last one shown in https://ci.ros2.org/view/nightly/job/nightly_linux_release/2205/gcc/new/