From 8297b3faf8606762b176d57637f2ec5f84601e0d Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 4 Dec 2021 21:12:06 +0100 Subject: Fix: unit test and sample program Windows build Now that there is a wrapper for main() on Windows, all executable programs must use a common, cannonical signature for main(). Furthermore, the Windows version of the epoch test needs wrappers for setenv/unsetenv. Signed-off-by: David Oberhollenzer --- tests/libfstream/uncompress.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/libfstream/uncompress.c') diff --git a/tests/libfstream/uncompress.c b/tests/libfstream/uncompress.c index 3e4679d..5f0cbec 100644 --- a/tests/libfstream/uncompress.c +++ b/tests/libfstream/uncompress.c @@ -384,13 +384,14 @@ static istream_t memstream = { .get_filename = get_filename, }; -int main(void) +int main(int argc, char **argv) { char buffer[2 * (sizeof(orig) / sizeof(orig[0]))]; const char *name; istream_t *xfrm; size_t orig_sz; int ret; + (void)argc; (void)argv; /* XXX: null terminator not included in the compressed blob */ orig_sz = (sizeof(orig) / sizeof(orig[0])) - 1; -- cgit v1.2.3