Files
perl-Crypt-OpenSSL-X509/0001-fix-compilation-with-gcc5.patch

42 lines
1.1 KiB
Diff

From 79ea78590ec9354a93ef0243a7efa5b786b001c5 Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Date: Thu, 27 Aug 2015 20:13:51 +0200
Subject: [PATCH] fix compilation with gcc5
error was:
X509.xs: In function 'XS_Crypt__OpenSSL__X509_extension':
X509.xs:740:10: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
if (!c > 0) {
^
cc1: all warnings being treated as errors
Makefile:346: recipe for target 'X509.o' failed
---
X509.xs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/X509.xs b/X509.xs
index 23f7666..8380ff9 100644
--- a/X509.xs
+++ b/X509.xs
@@ -181,7 +181,7 @@ static HV* hv_exts(X509* x509, int no_name) {
sv_2mortal((SV*)RETVAL);
c = X509_get_ext_count(x509);
- if ( ! c > 0 ) {
+ if ( !(c > 0) ) {
croak("No extensions found\n");
}
@@ -868,7 +868,7 @@ extension(x509, i)
c = X509_get_ext_count(x509);
- if (!c > 0) {
+ if (!(c > 0)) {
croak("No extensions found\n");
} else if (i >= c || i < 0) {
croak("Requested extension index out of range\n");
--
2.5.0