diff options
author | Adriaan de Groot <adridg@FreeBSD.org> | 2023-02-19 14:02:54 +0100 |
---|---|---|
committer | Adriaan de Groot <adridg@FreeBSD.org> | 2023-02-19 14:07:52 +0100 |
commit | a46fb43e0e75b4099d7ea35b7072a3c2ca9362b1 (patch) | |
tree | 7f2ca2b23b31b7a5138e530a76378fc65408fbf7 /math/readstat/files/patch-src_sas_ieee.c | |
parent | devel/bear: Update to 3.1.1 (diff) |
math/readstat: fix build on 14-CURRENT
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.
Diffstat (limited to 'math/readstat/files/patch-src_sas_ieee.c')
-rw-r--r-- | math/readstat/files/patch-src_sas_ieee.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/math/readstat/files/patch-src_sas_ieee.c b/math/readstat/files/patch-src_sas_ieee.c new file mode 100644 index 000000000000..beab46c1713d --- /dev/null +++ b/math/readstat/files/patch-src_sas_ieee.c @@ -0,0 +1,11 @@ +--- src/sas/ieee.c.orig 2023-02-19 12:37:34 UTC ++++ src/sas/ieee.c +@@ -16,7 +16,7 @@ static void ieee2xpt(unsigned char *ieee, unsigned cha + + #ifndef FLOATREP + #define FLOATREP get_native() +-int get_native(); ++int get_native(void); + #endif + + void memreverse(void *intp_void, int l) { |