Building with -Werror=format-security
Posted: 10 Mar 2015, 21:17
Some Linux distributions have started building their packages with -Werror=format-security. The polymake build almost succeeds in building with that flag, but needs this patch (against the 2.14 release) to succeed all the way:
Code: Select all
--- lib/core/src/perl/RefHash.xs.orig 2015-03-04 05:51:50.000000000 -0700
+++ lib/core/src/perl/RefHash.xs 2015-03-10 14:12:50.828577970 -0600
@@ -88,7 +88,7 @@
} \
} STMT_END
-static char err_ref[]="Reference as a key in a normal hash";
+static const char err_ref[]="Reference as a key in a normal hash";
static inline
int ref_key_allowed(HV* class)