mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-27 13:31:02 +08:00
t/: Use "int main(void)" for the main C signature
This commit updates a few tests where we aren't using the correct C signature for main() or are not using any of its parameters (in the case of t/version/version.c.)
This commit is contained in:
parent
2c63d76205
commit
de5ea41b4f
@ -2370,7 +2370,7 @@ static Test tests[] =
|
|||||||
};
|
};
|
||||||
#define n_tests (sizeof(tests)/sizeof(Test))
|
#define n_tests (sizeof(tests)/sizeof(Test))
|
||||||
|
|
||||||
int main ()
|
int main(void)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
for (i = 0; i < n_tests; i++)
|
for (i = 0; i < n_tests; i++)
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include "protobuf-c.h"
|
#include "protobuf-c.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(void)
|
||||||
{
|
{
|
||||||
printf("PACKAGE_VERSION = %s\n",
|
printf("PACKAGE_VERSION = %s\n",
|
||||||
PACKAGE_VERSION);
|
PACKAGE_VERSION);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user