vendredi 24 avril 2015

How do you make clang++ not warn about variable length arrays?

I am compiling with clang++ -pedantic -Werror -std=c++11 C++11 does not support variable length arrays and so the compiler warns when they are used. g++ supports the -Wno-vla option to stop it from doing this. This doesn't appear to work in clang++, is there an alternative that does work?

Aucun commentaire:

Enregistrer un commentaire