aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gnutls/libtasn1/0002-ASN.y-corrected-compiler-warning.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-08-11 20:31:15 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-17 10:35:05 +0100
commit6e3ff002e1a24936acb20dd209ea758c065cc16a (patch)
treea7b6b8324d585eb845cec44d7dcba9e399bed2f2 /meta/recipes-support/gnutls/libtasn1/0002-ASN.y-corrected-compiler-warning.patch
parent25deaf1368cc0a99d7b5b3f2d08d7fead51296e2 (diff)
downloadopenembedded-core-contrib-6e3ff002e1a24936acb20dd209ea758c065cc16a.tar.gz
libtasn1: Backport compiler warning fixes
These patches are backported from master to fix issues raised by clang compiler. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-support/gnutls/libtasn1/0002-ASN.y-corrected-compiler-warning.patch')
-rw-r--r--meta/recipes-support/gnutls/libtasn1/0002-ASN.y-corrected-compiler-warning.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-support/gnutls/libtasn1/0002-ASN.y-corrected-compiler-warning.patch b/meta/recipes-support/gnutls/libtasn1/0002-ASN.y-corrected-compiler-warning.patch
new file mode 100644
index 0000000000..dd364223bd
--- /dev/null
+++ b/meta/recipes-support/gnutls/libtasn1/0002-ASN.y-corrected-compiler-warning.patch
@@ -0,0 +1,28 @@
+From 3542c01618fcde83b29640ea2c60bfd2629ae0b7 Mon Sep 17 00:00:00 2001
+From: Nikos Mavrogiannopoulos <nmav@redhat.com>
+Date: Tue, 26 Jul 2016 08:47:49 +0200
+Subject: [PATCH 2/4] ASN.y: corrected compiler warning
+
+---
+Upstream-Status: Backport
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+ lib/ASN1.y | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/ASN1.y b/lib/ASN1.y
+index 731415d..6db638f 100644
+--- a/lib/ASN1.y
++++ b/lib/ASN1.y
+@@ -621,7 +621,7 @@ _asn1_create_errorDescription (int error, char *error_desc)
+ case ASN1_NAME_TOO_LONG:
+ snprintf (error_desc, ASN1_MAX_ERROR_DESCRIPTION_SIZE,
+ "%s:%u: name too long (more than %u characters)", file_name,
+- line_number, ASN1_MAX_NAME_SIZE);
++ line_number, (unsigned)ASN1_MAX_NAME_SIZE);
+ break;
+ case ASN1_IDENTIFIER_NOT_FOUND:
+ snprintf (error_desc, ASN1_MAX_ERROR_DESCRIPTION_SIZE,
+--
+1.9.1
+