Skip to content

Commit

Permalink
erasure_code: fix wrong return type
Browse files Browse the repository at this point in the history
erasure_code/ppc64le/gf_vect_mul_vsx.c: In function '_gf_vect_mul_base':
erasure_code/ppc64le/gf_vect_mul_vsx.c:14:16: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   14 |         return 0;
      |                ^
erasure_code/ppc64le/gf_vect_mul_vsx.c:6:13: note: declared here
    6 | static void _gf_vect_mul_base(int len, unsigned char *a, unsigned char *src,
      |             ^~~~~~~~~~~~~~~~~

Signed-off-by: Mattias Ellert <mattias.ellert@physics.uu.se>
  • Loading branch information
ellert authored and pablodelara committed Jan 23, 2024
1 parent bd22637 commit 1b1ee1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erasure_code/ppc64le/gf_vect_mul_vsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ static void _gf_vect_mul_base(int len, unsigned char *a, unsigned char *src,

while (len-- > 0)
*dest++ = gf_mul(c, *src++);
return 0;
return;
}

void gf_vect_mul_vsx(int len, unsigned char *gftbl, unsigned char *src, unsigned char *dest)
Expand Down

0 comments on commit 1b1ee1e

Please sign in to comment.