summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures
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/CompileFeatures
parent35424aab2e35ae5e4e3762feae26a0c305c73b9d (diff)
downloadCMake-264dcae5e42b51724983296457c569a3110687a5.zip
CMake-264dcae5e42b51724983296457c569a3110687a5.tar.gz
CMake-264dcae5e42b51724983296457c569a3110687a5.tar.bz2
Tests: Fix clang -Wstrict-prototypes warnings
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r--Tests/CompileFeatures/c_variadic_macros.c2
-rw-r--r--Tests/CompileFeatures/default_dialect.c2
-rw-r--r--Tests/CompileFeatures/genex_test.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/Tests/CompileFeatures/c_variadic_macros.c b/Tests/CompileFeatures/c_variadic_macros.c
index 4da111e..7a21902 100644
--- a/Tests/CompileFeatures/c_variadic_macros.c
+++ b/Tests/CompileFeatures/c_variadic_macros.c
@@ -9,7 +9,7 @@ int someFunc(int i1, char c, int i2)
#define FUNC_WRAPPER(...) someFunc(__VA_ARGS__)
-void otherFunc()
+void otherFunc(void)
{
FUNC_WRAPPER(42, 'a', 7);
}
diff --git a/Tests/CompileFeatures/default_dialect.c b/Tests/CompileFeatures/default_dialect.c
index c696c83..cae107b 100644
--- a/Tests/CompileFeatures/default_dialect.c
+++ b/Tests/CompileFeatures/default_dialect.c
@@ -26,7 +26,7 @@
# endif
#endif
-int main()
+int main(void)
{
return 0;
}
diff --git a/Tests/CompileFeatures/genex_test.c b/Tests/CompileFeatures/genex_test.c
index de408ce..8ccad35 100644
--- a/Tests/CompileFeatures/genex_test.c
+++ b/Tests/CompileFeatures/genex_test.c
@@ -38,6 +38,6 @@
# endif
#endif
-int main()
+int main(void)
{
}