From 9e87af9dd74995bfcbaf0d820a9466b7df7573b6 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 14 Aug 2024 19:09:20 +0200 Subject: [PATCH] linmath: Fix compiler warning with gcc 14 --- panda/src/linmath/lorientation_src.I | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/linmath/lorientation_src.I b/panda/src/linmath/lorientation_src.I index 8cc56aa235..684f71118c 100644 --- a/panda/src/linmath/lorientation_src.I +++ b/panda/src/linmath/lorientation_src.I @@ -70,7 +70,7 @@ FLOATNAME(LOrientation)(const FLOATNAME(LMatrix4) &m) { */ INLINE_LINMATH FLOATNAME(LOrientation) FLOATNAME(LOrientation):: operator * (const FLOATNAME(LRotation) &other) const { - return multiply((FLOATNAME(LOrientation) &)other); + return multiply((const FLOATNAME(LOrientation) &)other); } /** @@ -80,5 +80,5 @@ operator * (const FLOATNAME(LRotation) &other) const { INLINE_LINMATH FLOATNAME(LOrientation) FLOATNAME(LOrientation):: operator * (const FLOATNAME(LQuaternion) &other) const { nassert_raise("LOrientation * LQuaternion is undefined; use LOrientation * LRotation or LQuaternion * LQuaternion"); - return multiply((FLOATNAME(LOrientation) &)other); + return multiply((const FLOATNAME(LOrientation) &)other); }