Browse files

Revert "[HACK] builtins: Add -Wno-vastart-last-param to disable va_st…

…art arg warning"

This reverts commit d90aac2.
  • Loading branch information...
1 parent 44c4071 commit e8dcc9884a32028ff8da3b12b4ec6589e82de1d1 @richlowe richlowe committed Nov 18, 2011
Showing with 1 addition and 7 deletions.
  1. +1 −3 gcc/builtins.c
  2. +0 −4 gcc/common.opt
@@ -11798,9 +11798,7 @@ fold_builtin_next_arg (tree exp, bool va_start_p)
argument. We just warn and set the arg to be the last
argument so that we will get wrong-code because of
it. */
- if (warn_vastart_last_param)
- warning (0, "second parameter of %<va_start%> not last "
- "named argument");
+ warning (0, "second parameter of %<va_start%> not last named argument");
/* Undefined by C99 (va_start):
@@ -229,10 +229,6 @@ Wunused-variable
Common Var(warn_unused_variable) Init(-1) Warning
Warn when a variable is unused
-Common Var(warn_vastart_last_param) Init(1) Warning
-Warn when the 2nd argument to va_start() is not the last formal parameter
Common RejectNegative Var(warn_coverage_mismatch) Warning
Warn instead of error in case profiles in -fprofile-use do not match

0 comments on commit e8dcc98

Please sign in to comment.