From 054a4134e62cc6ca5e71d87e8d7cb86d1c4a6774 Mon Sep 17 00:00:00 2001 From: Dietrich Epp Date: Tue, 12 Apr 2022 01:52:05 -0400 Subject: [PATCH] Fix compiler warnings on Xcode 11 --- convert/convert_test.c | 2 +- lib/endian_test.c | 2 +- lib/test.c | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/convert/convert_test.c b/convert/convert_test.c index 7889850..fdadbac 100644 --- a/convert/convert_test.c +++ b/convert/convert_test.c @@ -110,7 +110,7 @@ static void TestConverter(const char *name, struct CharmapData data) cf.data = NULL; cr.data = NULL; - SetTestNamef(name); + SetTestName(name); /* Load the converter into memory and build the conversion table. */ datap = (void *)data.ptr; diff --git a/lib/endian_test.c b/lib/endian_test.c index e01e1fe..0439a0f 100644 --- a/lib/endian_test.c +++ b/lib/endian_test.c @@ -41,7 +41,7 @@ static void Test32(void) { union { UInt32 i; - UInt8 b[2]; + UInt8 b[4]; } u; UInt32 be; diff --git a/lib/test.c b/lib/test.c index d93cccf..385e6f1 100644 --- a/lib/test.c +++ b/lib/test.c @@ -1,9 +1,6 @@ // Copyright 2022 Dietrich Epp. // This file is part of SyncFiles. SyncFiles is licensed under the terms of the // Mozilla Public License, version 2.0. See LICENSE.txt for details. -/* Defined to get vsnprintf. */ -#define _XOPEN_SOURCE 500 - #include "lib/test.h" #include "lib/util.h"