From df05c92bbb10200e1cb8290ddc741f9ed542b423 Mon Sep 17 00:00:00 2001 From: amai2012 Date: Fri, 25 Mar 2022 16:21:28 +0100 Subject: [PATCH] Adjust test to avoid new warning --- test/testfunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testfunctions.cpp b/test/testfunctions.cpp index 12c9e91ab..808c9f537 100644 --- a/test/testfunctions.cpp +++ b/test/testfunctions.cpp @@ -374,7 +374,7 @@ private: check("void f()\n" "{\n" " time_t t = 0;" - " std::localtime(&t);\n" + " auto lt = std::localtime(&t);\n" "}"); ASSERT_EQUALS("[test.cpp:3]: (portability) Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'.\n", errout.str());