mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
Tests: Add missing return types to C function prototypes
These were diagnosed by a Clang 15 development version.
This commit is contained in:
@@ -19,7 +19,7 @@ extern int testStaticLibPlugin(void);
|
||||
#else
|
||||
# define testLib4libcfg testLib4libopt
|
||||
#endif
|
||||
extern testLib4libcfg(void);
|
||||
extern int testLib4libcfg(void);
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include <stdio.h>
|
||||
main()
|
||||
int main(void)
|
||||
{
|
||||
printf("hello, world\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user