From 3f97bd5477d6c13e4108234f60c5f6fab623d775 Mon Sep 17 00:00:00 2001 From: Zachary Blair Date: Tue, 4 Jan 2011 23:21:02 -0800 Subject: [PATCH] Fixed #2343 (The ftime obsolete function warning seems wrong) --- lib/checkobsoletefunctions.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/checkobsoletefunctions.h b/lib/checkobsoletefunctions.h index d9e7f6bb9..aebfbea51 100644 --- a/lib/checkobsoletefunctions.h +++ b/lib/checkobsoletefunctions.h @@ -82,7 +82,9 @@ private: _obsoleteFunctions.push_back(std::make_pair("fcvt","Found obsolete function 'fcvt'. It is recommended that new applications use the 'sprintf' function")); _obsoleteFunctions.push_back(std::make_pair("gcvt","Found obsolete function 'gcvt'. It is recommended that new applications use the 'sprintf' function")); - _obsoleteFunctions.push_back(std::make_pair("ftime","Found obsolete function 'ftime'. It is recommended that new applications use the 'ftime' function. Realtime applications should use ''clock_gettime'' to determine the current time")); + _obsoleteFunctions.push_back(std::make_pair("ftime","Found obsolete function 'ftime'.\n" + "It is recommended that new applications use time(), gettimeofday(), or clock_gettime() instead.\n" + "For high-resolution timing on Windows, QueryPerformanceCounter() and QueryPerformanceFrequency may be used.")); _obsoleteFunctions.push_back(std::make_pair("getcontext","Found obsolete function 'getcontext'. Due to portability issues with this function, applications are recommended to be rewritten to use POSIX threads")); _obsoleteFunctions.push_back(std::make_pair("makecontext","Found obsolete function 'makecontext'. Due to portability issues with this function, applications are recommended to be rewritten to use POSIX threads"));