Skip to content

Commit 9870c39

Browse files
committed
Move #pragma location a little bit
1 parent f2a7bcd commit 9870c39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wpimath/src/main/native/include/frc/kinematics/SwerveDriveOdometry3d.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ class SwerveDriveOdometry3d
4646
SwerveDriveKinematics<NumModules> kinematics, const Rotation2d& gyroAngle,
4747
const wpi::array<SwerveModulePosition, NumModules>& modulePositions,
4848
const Pose2d& initialPose = Pose2d{})
49-
: SwerveDriveOdometry3d::Odometry3d(m_kinematicsImpl, gyroAngle,
50-
modulePositions, initialPose),
5149
#if defined(__GNUC__) && !defined(__clang__)
5250
#pragma GCC diagnostic push
5351
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
5452
#endif // defined(__GNUC__) && !defined(__clang__)
53+
: SwerveDriveOdometry3d::Odometry3d(m_kinematicsImpl, gyroAngle,
54+
modulePositions, initialPose),
5555
m_kinematicsImpl(kinematics) {
5656
#if defined(__GNUC__) && !defined(__clang__)
5757
#pragma GCC diagnostic pop

0 commit comments

Comments
 (0)