INN commit: trunk/include (innperl.h)
INN Commit
rra at isc.org
Fri Aug 28 19:27:39 UTC 2015
Date: Friday, August 28, 2015 @ 12:27:38
Author: iulius
Revision: 9933
Silent the float-equal GCC warning for Perl XS
See the thread
[perl #125770] Unsafe comparison of floats in SvTRUE
in perl5-porters in August 2015.
Modified:
trunk/include/innperl.h
-----------+
innperl.h | 4 ++++
1 file changed, 4 insertions(+)
Modified: innperl.h
===================================================================
--- innperl.h 2015-08-28 19:23:27 UTC (rev 9932)
+++ innperl.h 2015-08-28 19:27:38 UTC (rev 9933)
@@ -11,6 +11,10 @@
#include "config.h"
+/* Suppress the float-equal gcc warning because of SvTRUE that
+ compares floats to 0.0 in Perl core code. */
+#pragma GCC diagnostic ignored "-Wfloat-equal"
+
BEGIN_DECLS
/* Provide an alternate version of newXS that takes const char strings for the
More information about the inn-committers
mailing list