diff options
Diffstat (limited to 'dev-libs/libntru/files/02-libntru-0.2-add-warnings.patch')
-rw-r--r-- | dev-libs/libntru/files/02-libntru-0.2-add-warnings.patch | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/dev-libs/libntru/files/02-libntru-0.2-add-warnings.patch b/dev-libs/libntru/files/02-libntru-0.2-add-warnings.patch deleted file mode 100644 index 454e781646b9..000000000000 --- a/dev-libs/libntru/files/02-libntru-0.2-add-warnings.patch +++ /dev/null @@ -1,60 +0,0 @@ -From 70ee775ae08d9965b3b1a2045703ab232289cb52 Mon Sep 17 00:00:00 2001 -From: Tim Buktu <tbuktu@hotmail.com> -Date: Tue, 15 Apr 2014 00:56:43 +0200 -Subject: [PATCH] Add -Wextra -Wno-unused-parameter and fix a warning - ---- - Makefile | 2 +- - Makefile.osx | 2 +- - Makefile.win | 2 +- - src/rand.c | 2 +- - 4 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/Makefile b/Makefile -index eb22b7a..ea88bb3 100644 ---- a/Makefile -+++ b/Makefile -@@ -1,5 +1,5 @@ - CC?=gcc --CFLAGS=-g -Wall -O2 -+CFLAGS=-g -Wall -Wextra -Wno-unused-parameter -O2 - LDFLAGS=-lrt - SRCDIR=src - TESTDIR=tests -diff --git a/Makefile.osx b/Makefile.osx -index ef20d64..68877fb 100644 ---- a/Makefile.osx -+++ b/Makefile.osx -@@ -1,5 +1,5 @@ - CC?=gcc --CFLAGS=-g -Wall -O2 -+CFLAGS=-g -Wall -Wextra -Wno-unused-parameter -O2 - SRCDIR=src - TESTDIR=tests - LIB_OBJS=bitstring.o encparams.o hash.o idxgen.o key.o mgf.o ntru.o poly.o rand.o sha1.o sha2.o -diff --git a/Makefile.win b/Makefile.win -index 8a1c55b..0eb18a5 100644 ---- a/Makefile.win -+++ b/Makefile.win -@@ -1,5 +1,5 @@ - CC?=gcc --CFLAGS=-g -Wall -O2 -+CFLAGS=-g -Wall -Wextra -Wno-unused-parameter -O2 - SRCDIR=src - TESTDIR=tests - LIB_OBJS=bitstring.o encparams.o hash.o idxgen.o key.o mgf.o ntru.o poly.o rand.o sha1.o sha2.o -diff --git a/src/rand.c b/src/rand.c -index 187fad2..93bf76b 100644 ---- a/src/rand.c -+++ b/src/rand.c -@@ -17,7 +17,7 @@ uint8_t ntru_rand_wincrypt(uint8_t rand_data[], uint16_t len, NtruRandContext *r - if (hCryptProv == 0) { - uint8_t result = CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, 0); - if (!result) { -- if (GetLastError() == NTE_BAD_KEYSET) // see http://support.microsoft.com/kb/238187 -+ if (GetLastError() == (DWORD)NTE_BAD_KEYSET) // see http://support.microsoft.com/kb/238187 - result = CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET); - if (!result) - return 0; --- -1.9.1 |