From fa45f89017146007ceb4733a0bbb5ddf0c8e9faf Mon Sep 17 00:00:00 2001 From: Steven Rieder Date: Wed, 11 Sep 2024 15:51:08 +0200 Subject: [PATCH] Update g6lib.c Fixes issue encountered with GCC 14.1: ``` g6lib.c:112:8: error: return type defaults to 'int' [-Wimplicit-int] 112 | inline clear_i_particle(g6_i_particle * particle) { | ^~~~~~~~~~~~~~~~ make: *** [g6lib.o] Error 1 ``` --- lib/g6/g6lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/g6/g6lib.c b/lib/g6/g6lib.c index e341565b5d..e43eda31a4 100644 --- a/lib/g6/g6lib.c +++ b/lib/g6/g6lib.c @@ -109,7 +109,7 @@ inline double vec_dot(vector3 va, vector3 vb){ return result; } -inline clear_i_particle(g6_i_particle * particle) { +inline void clear_i_particle(g6_i_particle * particle) { int k; for(k = 0; k < 3; k++) { particle->acc[k] = 0.0;