Files
ports/math/readstat/files/patch-src_readstat__variable.c
T
Adriaan de Groot a46fb43e0e 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.
2023-02-19 14:07:52 +01:00

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() {