summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeCommands
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-10-25 14:39:15 (GMT)
committerBrad King <brad.king@kitware.com>2023-10-26 13:20:45 (GMT)
commit264dcae5e42b51724983296457c569a3110687a5 (patch)
tree7fe3b5b5e0ece0dcef79cec708415161ba1a8812 /Tests/CMakeCommands
parent35424aab2e35ae5e4e3762feae26a0c305c73b9d (diff)
downloadCMake-264dcae5e42b51724983296457c569a3110687a5.zip
CMake-264dcae5e42b51724983296457c569a3110687a5.tar.gz
CMake-264dcae5e42b51724983296457c569a3110687a5.tar.bz2
Tests: Fix clang -Wstrict-prototypes warnings
Diffstat (limited to 'Tests/CMakeCommands')
-rw-r--r--Tests/CMakeCommands/target_compile_definitions/consumer.c2
-rw-r--r--Tests/CMakeCommands/target_compile_features/main.c2
-rw-r--r--Tests/CMakeCommands/target_compile_features/restrict_user.c2
-rw-r--r--Tests/CMakeCommands/target_compile_options/consumer.c2
-rw-r--r--Tests/CMakeCommands/target_include_directories/consumer.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/Tests/CMakeCommands/target_compile_definitions/consumer.c b/Tests/CMakeCommands/target_compile_definitions/consumer.c
index bb65e01..08554f4 100644
--- a/Tests/CMakeCommands/target_compile_definitions/consumer.c
+++ b/Tests/CMakeCommands/target_compile_definitions/consumer.c
@@ -39,6 +39,6 @@
# error Expected LANG_IS_C_OR_CXX
#endif
-void consumer_c()
+void consumer_c(void)
{
}
diff --git a/Tests/CMakeCommands/target_compile_features/main.c b/Tests/CMakeCommands/target_compile_features/main.c
index 76e98c4..60f0f9e 100644
--- a/Tests/CMakeCommands/target_compile_features/main.c
+++ b/Tests/CMakeCommands/target_compile_features/main.c
@@ -6,7 +6,7 @@ int foo(int* restrict a, int* restrict b)
return 0;
}
-int main()
+int main(void)
{
return 0;
}
diff --git a/Tests/CMakeCommands/target_compile_features/restrict_user.c b/Tests/CMakeCommands/target_compile_features/restrict_user.c
index 76c956f..42e3efb 100644
--- a/Tests/CMakeCommands/target_compile_features/restrict_user.c
+++ b/Tests/CMakeCommands/target_compile_features/restrict_user.c
@@ -8,7 +8,7 @@ int bar(int* restrict a, int* restrict b)
return foo(a, b);
}
-int main()
+int main(void)
{
return 0;
}
diff --git a/Tests/CMakeCommands/target_compile_options/consumer.c b/Tests/CMakeCommands/target_compile_options/consumer.c
index f9b6654..0984166 100644
--- a/Tests/CMakeCommands/target_compile_options/consumer.c
+++ b/Tests/CMakeCommands/target_compile_options/consumer.c
@@ -35,6 +35,6 @@
# endif
#endif
-void consumer_c()
+void consumer_c(void)
{
}
diff --git a/Tests/CMakeCommands/target_include_directories/consumer.c b/Tests/CMakeCommands/target_include_directories/consumer.c
index 7fd694b..1975050 100644
--- a/Tests/CMakeCommands/target_include_directories/consumer.c
+++ b/Tests/CMakeCommands/target_include_directories/consumer.c
@@ -15,7 +15,7 @@
# endif
#endif
-int consumer_c()
+int consumer_c(void)
{
return 0;
}