patch-gcc_c-decl_c 459 B

12345678910111213
  1. $OpenBSD: patch-gcc_c-decl_c,v 1.1 2012/03/31 20:02:03 pascal Exp $
  2. --- gcc/c-decl.c.orig Thu Feb 23 18:38:13 2012
  3. +++ gcc/c-decl.c Mon Mar 12 08:42:51 2012
  4. @@ -4788,6 +4788,8 @@ warn_variable_length_array (tree name, tree size)
  5. "variable length array is used");
  6. }
  7. }
  8. + if (warn_variable_decl)
  9. + warning (OPT_Wvariable_decl, "variable-sized array %qE", name);
  10. }
  11. /* Given a size SIZE that may not be a constant, return a SAVE_EXPR to