Skip to content

Commit f5e8a72

Browse files
committed
#7438 Incorrect alloca() avoidance suggestion
1 parent 9f4d4bd commit f5e8a72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkfunctions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void CheckFunctions::checkProhibitedFunctions()
5353
"(http://stackoverflow.com/questions/1018853/why-is-alloca-not-considered-good-practice and http://linux.die.net/man/3/alloca).");
5454
else
5555
reportError(tok, Severity::warning, "allocaCalled",
56-
"Obsolete function 'alloca' called. In C++11 and later it is recommended to use std::array<> instead.\n"
56+
"Obsolete function 'alloca' called.\n"
5757
"The obsolete function 'alloca' is called. In C++11 and later it is recommended to use std::array<> or "
5858
"a dynamically allocated array instead. The function 'alloca' is dangerous for many reasons "
5959
"(http://stackoverflow.com/questions/1018853/why-is-alloca-not-considered-good-practice and http://linux.die.net/man/3/alloca).");

0 commit comments

Comments
 (0)