See attached...

This patch has no functional changes, it just gets gcc to shut up about a signed/unsigned compare, and an unused param.

~ Charles
>From 250b94bdc5902772a1ff40a43879909dc77202b9 Mon Sep 17 00:00:00 2001
From: Charles Daniels <[email protected]>
Date: Wed, 18 Sep 2019 15:47:16 -0400
Subject: [PATCH] fix minor compiler warnings

---
 math/m_matrix_fpu.h  | 2 ++
 math/m_vector3_sse.h | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/math/m_matrix_fpu.h b/math/m_matrix_fpu.h
index c191d0697..0e2426226 100644
--- a/math/m_matrix_fpu.h
+++ b/math/m_matrix_fpu.h
@@ -363,6 +363,8 @@ M_MatrixEntMulv_FPU(const void *_Nonnull pA, const void *_Nonnull pB,
 static __inline__ void
 M_MNAPreorder_FPU(void *_Nonnull A)
 {
+	/* silence unused parameter warning */
+	(void)(A);
 }
 
 static __inline__ void
diff --git a/math/m_vector3_sse.h b/math/m_vector3_sse.h
index 5382dc404..d0398d304 100644
--- a/math/m_vector3_sse.h
+++ b/math/m_vector3_sse.h
@@ -420,7 +420,7 @@ M_VectorSum3_SSE(const M_Vector3 *_Nonnull va, Uint count)
 {
 	__m128 r1;
 	M_Vector3 out;
-	int i;
+	Uint i;
 
 	r1 = _mm_setzero_ps();
 	for (i = 0; i < count; i++) {
-- 
2.17.1

_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to