set values for variables that could be used uninitialized #63
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The build fails when enabling the flag -Werror=maybe-uninitialized
10:41:15 make[4]: Leaving directory '/tmp/buildd/laser-filters-1.8.5/obj-x86_64-linux-gnu'
10:41:15 [ 64%] Built target pointcloud_filters
10:41:18 In file included from /opt/ros/kinetic/include/tf/LinearMath/Matrix3x3.h:19:0,
10:41:18 from /opt/ros/kinetic/include/tf/LinearMath/Transform.h:21,
10:41:18 from /opt/ros/kinetic/include/tf/transform_datatypes.h:41,
10:41:18 from /opt/ros/kinetic/include/tf/time_cache.h:38,
10:41:18 from /opt/ros/kinetic/include/tf/tf.h:43,
10:41:18 from /opt/ros/kinetic/include/laser_geometry/laser_geometry.h:40,
10:41:18 from /tmp/buildd/laser-filters-1.8.5/include/laser_filters/box_filter.h:54,
10:41:18 from /tmp/buildd/laser-filters-1.8.5/src/box_filter.cpp:45:
10:41:18 /opt/ros/kinetic/include/tf/LinearMath/Vector3.h: In member function 'virtual bool laser_filters::LaserScanBoxFilter::configure()':
10:41:18
/opt/ros/kinetic/include/tf/LinearMath/Vector3.h:259:61: error: 'min_z' may be used uninitialized in this function [-Werror=maybe-uninitialized]
10:41:18 TFSIMD_FORCE_INLINE void setZ(tfScalar z) {m_floats[2] = z;};
10:41:18 ^
10:41:18 /tmp/buildd/laser-filters-1.8.5/src/box_filter.cpp:54:24: note: 'min_z' was declared here
10:41:18 double min_x, min_y, min_z, max_x, max_y, max_z;