From f5e8a72dc2d53492fecd7f387f076fc9f542175a Mon Sep 17 00:00:00 2001 From: amai2012 Date: Fri, 8 Apr 2016 11:21:53 +0200 Subject: [PATCH] #7438 Incorrect alloca() avoidance suggestion --- lib/checkfunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkfunctions.cpp b/lib/checkfunctions.cpp index 21756a8d6..9b80bb4b9 100644 --- a/lib/checkfunctions.cpp +++ b/lib/checkfunctions.cpp @@ -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).");