Skip to content

Commit

Permalink
Update g6lib.c
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
rieder authored Sep 11, 2024
1 parent 0d72c38 commit fa45f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/g6/g6lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fa45f89

Please sign in to comment.