浏览代码

Merge topic 'tests-Wstrict-prototypes'

4150a18910 Tests: Fix -Wstrict-prototypes warnings in some C sources

Acked-by: Kitware Robot <[email protected]>
Merge-request: !4744
Brad King 5 年之前
父节点
当前提交
ae9614a22d

+ 1 - 1
Tests/RunCMake/ObjectLibrary/b.c

@@ -5,7 +5,7 @@
 #endif
 #endif
 
 
 extern int a(void);
 extern int a(void);
-EXPORT int b()
+EXPORT int b(void)
 {
 {
   return a();
   return a();
 }
 }

+ 1 - 1
Tests/RunCMake/ObjectLibrary/requires.c

@@ -1,5 +1,5 @@
 #ifdef REQUIRED
 #ifdef REQUIRED
-int required()
+int required(void)
 {
 {
   return 0;
   return 0;
 }
 }

+ 1 - 1
Tests/RunCMake/PrecompileHeaders/empty.c

@@ -1,3 +1,3 @@
-void nothing()
+void nothing(void)
 {
 {
 }
 }