瀏覽代碼

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
 
 extern int a(void);
-EXPORT int b()
+EXPORT int b(void)
 {
   return a();
 }

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

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

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

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