From 31dbec0dbb2aa17535faf9093b15b26207497056 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 5 Jun 2020 18:01:11 -0700 Subject: [PATCH] more precise definition of vec_new Unfortunately a definition/declaration with no parameters in older C is ambiguous. Explicitly saying 'void' tells the compiler this takes no arguments. This silences a -Wstrict-prototypes warning on GCC 8.3. --- lib/common/routespl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/routespl.c b/lib/common/routespl.c index 4c2b29a42..d993ca008 100644 --- a/lib/common/routespl.c +++ b/lib/common/routespl.c @@ -912,7 +912,7 @@ typedef struct _tag_vec size_t _capelems; } vec; -static vec* vec_new() +static vec* vec_new(void) { vec* pvec = (vec*)malloc(sizeof(vec)); pvec->_capelems = 10; -- 2.40.0