#7438 Incorrect alloca() avoidance suggestion

This commit is contained in:
amai2012 2016-04-08 11:21:53 +02:00
parent 9f4d4bdde7
commit f5e8a72dc2
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ void CheckFunctions::checkProhibitedFunctions()
"(http://stackoverflow.com/questions/1018853/why-is-alloca-not-considered-good-practice and http://linux.die.net/man/3/alloca).");
else
reportError(tok, Severity::warning, "allocaCalled",
"Obsolete function 'alloca' called. In C++11 and later it is recommended to use std::array<> instead.\n"
"Obsolete function 'alloca' called.\n"
"The obsolete function 'alloca' is called. In C++11 and later it is recommended to use std::array<> or "
"a dynamically allocated array instead. The function 'alloca' is dangerous for many reasons "
"(http://stackoverflow.com/questions/1018853/why-is-alloca-not-considered-good-practice and http://linux.die.net/man/3/alloca).");