1 /* $NetBSD: msg_288.c,v 1.4 2023/07/07 19:45:22 rillig Exp $ */ 2 # 3 "msg_288.c" 3 4 // Test for message: dubious use of /* VARARGS */ with /* %s */ [288] 5 6 /* lint1-extra-flags: -X 351 */ 7 8 /* VARARGS */ 9 int 10 just_varargs(char x) 11 { 12 /* 13 * No warning here, even though having a VARARGS annotation on a 14 * function that is incompatible to varargs is dubious. 15 */ 16 return x; 17 } 18 19 /* VARARGS */ 20 /* PRINTFLIKE */ 21 int 22 example(int x) 23 /* expect+1: warning: dubious use of ** VARARGS ** with ** PRINTFLIKE ** [288] */ 24 { 25 return x; 26 } 27