diff clang/test/Sema/format-strings-gnu.c @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children
line wrap: on
line diff
--- a/clang/test/Sema/format-strings-gnu.c	Wed Jul 21 10:27:27 2021 +0900
+++ b/clang/test/Sema/format-strings-gnu.c	Wed Nov 09 17:45:10 2022 +0900
@@ -9,7 +9,7 @@
 int printf(const char *restrict, ...);
 int scanf(const char * restrict, ...) ;
 
-void test() {
+void test(void) {
   long notLongEnough = 1;
   long long quiteLong = 2;
 
@@ -29,7 +29,7 @@
 #endif
 }
 
-void testAlwaysInvalid() {
+void testAlwaysInvalid(void) {
   // We should not suggest 'll' here!
   printf("%Lc", 'a'); // expected-warning {{length modifier 'L' results in undefined behavior or no effect with 'c' conversion specifier}}
   printf("%Ls", "a"); // expected-warning {{length modifier 'L' results in undefined behavior or no effect with 's' conversion specifier}}