From 7c934801f88c640970ad41b5ddd39f4e39609f28 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 27 May 2025 09:03:51 +0200 Subject: Removed VLA notation from function parameters. I found out that this gives undefined behavior when then size is 0. Better not to have it at all, it is confusing for other developers anyway. --- src/solvers/coord/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/solvers/coord/utils.h') diff --git a/src/solvers/coord/utils.h b/src/solvers/coord/utils.h index 6066049..5b8f538 100644 --- a/src/solvers/coord/utils.h +++ b/src/solvers/coord/utils.h @@ -1,10 +1,10 @@ -STATIC coord_t *parse_coord(size_t n, const char [n]); +STATIC coord_t *parse_coord(size_t, const char *); STATIC uint8_t parse_axis(const char [static 2]); STATIC void parse_coord_and_axis(const char *, coord_t **, uint8_t *); STATIC long long dataid_coord(const char *, char [static NISSY_SIZE_DATAID]); STATIC coord_t * -parse_coord(size_t n, const char coord[n]) +parse_coord(size_t n, const char *coord) { int i; -- cgit v1.3