6705c6705
< else if (pedantic)
---
> else if (pedantic && warn_vla != 0)
6708c6708
< pedwarn ("ISO C++ forbids variable-size array %qD", name);
---
> pedwarn ("ISO C++ forbids variable length array %qD", name);
6710c6710
< pedwarn ("ISO C++ forbids variable-size array");
---
> pedwarn ("ISO C++ forbids variable length array");
6711a6712,6720
> else if (warn_vla > 0)
> {
> if (name)
> warning (OPT_Wvla,
> "variable length array %qD is used", name);
> else
> warning (OPT_Wvla,
> "variable length array is used");
> }
< else if (pedantic)
---
> else if (pedantic && warn_vla != 0)
6708c6708
< pedwarn ("ISO C++ forbids variable-size array %qD", name);
---
> pedwarn ("ISO C++ forbids variable length array %qD", name);
6710c6710
< pedwarn ("ISO C++ forbids variable-size array");
---
> pedwarn ("ISO C++ forbids variable length array");
6711a6712,6720
> else if (warn_vla > 0)
> {
> if (name)
> warning (OPT_Wvla,
> "variable length array %qD is used", name);
> else
> warning (OPT_Wvla,
> "variable length array is used");
> }