From 032e3e215d5796394d14957052667a66ba301a39 Mon Sep 17 00:00:00 2001 From: Simon Butcher Date: Thu, 4 Oct 2018 12:26:55 +0100 Subject: [PATCH] Enable more compiler warnings in tests/Makefile tests/Makefile had some unused warnings disabled unnecessarily, which test-ref-configs.pl was turning back on. We don't need to disable these warnings so I'm turning them back on. --- tests/Makefile | 2 +- tests/suites/helpers.function | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index d85617fdc..839fd5ebf 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -3,7 +3,7 @@ # To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS CFLAGS ?= -O2 -WARNING_CFLAGS ?= -Wall -W -Wdeclaration-after-statement -Wno-unused-function -Wno-unused-value +WARNING_CFLAGS ?= -Wall -W -Wdeclaration-after-statement -Wunused LDFLAGS ?= LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../include -D_FILE_OFFSET_BITS=64 diff --git a/tests/suites/helpers.function b/tests/suites/helpers.function index 10125c34a..1255714d4 100644 --- a/tests/suites/helpers.function +++ b/tests/suites/helpers.function @@ -424,10 +424,3 @@ int rnd_pseudo_rand( void *rng_state, unsigned char *output, size_t len ) return( 0 ); } -static void test_fail( const char *test, int line_no, const char* filename ) -{ - test_info.failed = 1; - test_info.test = test; - test_info.line_no = line_no; - test_info.filename = filename; -}