  	}
  }
  
-@@ -223,6 +238,9 @@ Eigen::Vector3d transform_static_frame(const Eigen::Vector3d &vec, const Eigen::
+@@ -228,6 +243,9 @@ Eigen::Vector3d transform_static_frame(const Eigen::Vector3d &vec, const Eigen::
  		// ENU to ECEF rotation is just an inverse rotation from ECEF to ENU, which means transpose.
  		R.transposeInPlace();
  		return R * vec;

 1 file changed, 18 insertions(+)

diff --git a/src/lib/ftf_frame_conversions.cpp b/src/lib/ftf_frame_conversions.cpp
index 003477dc8..296d09285 100644
--- a/src/lib/ftf_frame_conversions.cpp
+++ b/src/lib/ftf_frame_conversions.cpp
@@ -84,6 +84,9 @@ Eigen::Quaterniond transform_orientation(const Eigen::Quaterniond &q, const Stat
 	case StaticTF::AIRCRAFT_TO_BASELINK:
 	case StaticTF::BASELINK_TO_AIRCRAFT:
 		return q * AIRCRAFT_BASELINK_Q;
+	default:
+		ROS_FATAL("Unexpected transformation");
+		__builtin_unreachable ();
 	}
 }
 
@@ -98,6 +101,9 @@ Eigen::Vector3d transform_static_frame(const Eigen::Vector3d &vec, const StaticT
 	case StaticTF::AIRCRAFT_TO_BASELINK:
 	case StaticTF::BASELINK_TO_AIRCRAFT:
 		return AIRCRAFT_BASELINK_AFFINE * vec;

      | ^
cc1plus: some warnings being treated as errors

update for 1.6.0 version where it still fails:
/jenkins/mjansa/build/ros/webos-noetic-dunfell/tmp-glibc/work/qemux86-webos-linux/mavros/1.6.0-1-r0/git/src/lib/ftf_frame_conversions.cpp:93:1: error: control reaches end of non-void function [-Werror=return-type]
/jenkins/mjansa/build/ros/webos-noetic-dunfell/tmp-glibc/work/qemux86-webos-linux/mavros/1.6.0-1-r0/git/src/lib/ftf_frame_conversions.cpp:107:1: error: control reaches end of non-void function [-Werror=return-type]
/jenkins/mjansa/build/ros/webos-noetic-dunfell/tmp-glibc/work/qemux86-webos-linux/mavros/1.6.0-1-r0/git/src/lib/ftf_frame_conversions.cpp:127:1: error: control reaches end of non-void function [-Werror=return-type]
/jenkins/mjansa/build/ros/webos-noetic-dunfell/tmp-glibc/work/qemux86-webos-linux/mavros/1.6.0-1-r0/git/src/lib/ftf_frame_conversions.cpp:158:1: error: control reaches end of non-void function [-Werror=return-type]
/jenkins/mjansa/build/ros/webos-noetic-dunfell/tmp-glibc/work/qemux86-webos-linux/mavros/1.6.0-1-r0/git/src/lib/ftf_frame_conversions.cpp:191:1: error: control reaches end of non-void function [-Werror=return-type]
/jenkins/mjansa/build/ros/webos-noetic-dunfell/tmp-glibc/work/qemux86-webos-linux/mavros/1.6.0-1-r0/git/src/lib/ftf_frame_conversions.cpp:232:1: error: control reaches end of non-void function [-Werror=return-type]

Upstream-Status: Pending

Signed-off-by: Martin Jansa <martin.jansa@lge.com>
