Files
CMake/Tests/RunCMake/ObjectLibrary/requires.c
Brad King 4150a18910 Tests: Fix -Wstrict-prototypes warnings in some C sources
Some RunCMake tests fail with this warning due to extra stderr content:

    warning: this old-style function definition is not preceded by a prototype

Convert `foo()` to `foo(void)` in `.c` sources of affected tests.
2020-05-13 08:11:59 -04:00

9 lines
96 B
C

#ifdef REQUIRED
int required(void)
{
return 0;
}
#else
# error "REQUIRED not defined"
#endif