Fix compile warnings

This commit is contained in:
Ian Craggs 2024-04-18 14:04:46 +01:00
parent 7941934773
commit e84b19bab0
2 changed files with 4 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2009, 2022 IBM Corp., Ian Craggs
* Copyright (c) 2009, 2024 IBM Corp., Ian Craggs
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
@ -601,13 +601,10 @@ exit:
return failures;
}
int main(int argc, char** argv)
{
int rc = 0;
int (*tests[])() = {NULL, test1, test2};
int (*tests[])(struct Options) = {NULL, test1, test2};
int i;
xml = fopen("TEST-MQTT4sync.xml", "w");

View File

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2009, 2022 IBM Corp., Ian Craggs
* Copyright (c) 2009, 2024 IBM Corp., Ian Craggs
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
@ -477,7 +477,7 @@ exit:
int main(int argc, char** argv)
{
int rc = 0;
int (*tests[])() = {NULL, test1, test2};
int (*tests[])(struct Options) = {NULL, test1, test2};
int i;
xml = fopen("TEST-MQTT4sync.xml", "w");