wunused-value-2.c

来自「用于进行gcc测试」· C语言 代码 · 共 19 行

C
19
字号
/* Test -Wunused-value.  Bug 30729.  *//* { dg-do compile } *//* { dg-options "-Wunused-value" } *//* Make sure va_arg does not cause a value computed is not used warning   because it has side effects.   */#include <stdarg.h>int f(int t, ...){  va_list a;  va_start (a, t);  va_arg(a, int);/* { dg-bogus "value computed is not used" } */  int t1 = va_arg(a, int);  va_end(a);  return t1;}

⌨️ 快捷键说明

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