a46fb43e0e
In 14-CURRENT, the system compiler is more strict; it looks like
In file included from src/readstat_bits.c:9:
src/readstat_bits.h:10:29: error: a function declaration without
a prototype is deprecated in all versions of C
[-Werror,-Wstrict-prototypes]
int machine_is_little_endian();
Apply the stricter flags in all builds, then fix the source so
that the prototypes are explicitly (void) -- this is a subtlely
of C semantics where (void) means "no arguments" and () means
"arguments unspecified" that rarely matters. Except now.
12 lines
346 B
C
12 lines
346 B
C
--- src/readstat_variable.c.orig 2023-02-19 12:39:09 UTC
|
|
+++ src/readstat_variable.c
|
|
@@ -2,7 +2,7 @@
|
|
#include <stdlib.h>
|
|
#include "readstat.h"
|
|
|
|
-static readstat_value_t make_blank_value();
|
|
+static readstat_value_t make_blank_value(void);
|
|
static readstat_value_t make_double_value(double dval);
|
|
|
|
static readstat_value_t make_blank_value() {
|