openbsd-ports/lang/gcc/4.7/patches/patch-gcc_c-decl_c
pascal f2b393605c Import gcc 4.7.
ok espie@
2012-04-23 15:56:40 +00:00

13 lines
429 B
Plaintext

$OpenBSD: patch-gcc_c-decl_c,v 1.1.1.1 2012/04/23 15:56:42 pascal Exp $
--- gcc/c-decl.c.orig Thu Feb 23 17:34:02 2012
+++ gcc/c-decl.c Mon Apr 2 16:38:17 2012
@@ -4840,6 +4840,8 @@ warn_variable_length_array (tree name, tree size)
"variable length array is used");
}
}
+ if (warn_variable_decl)
+ warning (OPT_Wvariable_decl, "variable-sized array %qE", name);
}
/* Given declspecs and a declarator,