Fix compiler warnings on Xcode 11

This commit is contained in:
Dietrich Epp 2022-04-12 01:52:05 -04:00
parent 6844e5a271
commit 054a4134e6
3 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -41,7 +41,7 @@ static void Test32(void)
{
union {
UInt32 i;
UInt8 b[2];
UInt8 b[4];
} u;
UInt32 be;

View File

@ -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"