From 45bc175ef9278c175d2fc3a0678b49b18e74c449 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 14 Feb 2018 14:50:04 -0800 Subject: fixes #234 Investigate enabling more verbose compiler warnings We enabled verbose compiler warnings, and found a lot of issues. Some of these were even real bugs. As a bonus, we actually save some initialization steps in the compat layer, and avoid passing some variables we don't need. --- tests/base64.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/base64.c') diff --git a/tests/base64.c b/tests/base64.c index 714bd4b2..eac84df2 100644 --- a/tests/base64.c +++ b/tests/base64.c @@ -1,6 +1,6 @@ // -// Copyright 2017 Staysail Systems, Inc. -// Copyright 2017 Capitar IT Group BV +// Copyright 2018 Staysail Systems, Inc. +// Copyright 2018 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -45,7 +45,7 @@ TestMain("Base64 Verification", { for (i = 0; (dec = cases[i].decoded) != NULL; i++) { rv = nni_base64_encode(dec, strlen(dec), buf, 1024); So(rv >= 0); - So(rv == strlen(cases[i].encoded)); + So(rv == (int) strlen(cases[i].encoded)); buf[rv] = 0; So(strcmp(buf, cases[i].encoded) == 0); } @@ -61,7 +61,7 @@ TestMain("Base64 Verification", { rv = nni_base64_decode( enc, strlen(enc), (void *) buf, 1024); So(rv >= 0); - So(rv == strlen(cases[i].decoded)); + So(rv == (int) strlen(cases[i].decoded)); buf[rv] = 0; So(strcmp(buf, cases[i].decoded) == 0); } -- cgit v1.2.3-70-g09d2