msg_288.c revision 1.4
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 */ 9int 10just_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 */ 21int 22example(int x) 23/* expect+1: warning: dubious use of ** VARARGS ** with ** PRINTFLIKE ** [288] */ 24{ 25 return x; 26} 27