miss-2.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 17 行

C
17
字号
/* Test for warnings for missing format attributes.  Don't warn if no   relevant parameters for a format attribute; see c/1017.  *//* Origin: Joseph Myers <jsm28@cam.ac.uk> *//* { dg-do compile } *//* { dg-options "-std=gnu99 -Wformat -Wmissing-format-attribute" } */#include "format.h"voidfoo (int i, ...){  va_list ap;  va_start (ap, i);  vprintf ("Foo %s bar %s", ap); /* { dg-bogus "candidate" "bogus printf attribute warning" } */  va_end (ap);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?