f2b393605c
ok espie@
13 lines
429 B
Plaintext
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,
|