From: Ivan Maidanski Date: Thu, 9 Mar 2017 04:53:32 +0000 (+0300) Subject: Workaround 'obsolescent ftime called' cppcheck style warning (POSIX) X-Git-Tag: v7.6.0~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85e667b5efb4307e686a3feced5e846e812bb111;p=libatomic_ops Workaround 'obsolescent ftime called' cppcheck style warning (POSIX) * tests/test_stack.c [!NO_TIMES && (USE_WINTHREADS || AO_USE_WIN32_PTHREADS)] (get_msecs): Use gettimeofday-based implementation if CPPCHECK. --- diff --git a/tests/test_stack.c b/tests/test_stack.c index 0847c11..623f208 100644 --- a/tests/test_stack.c +++ b/tests/test_stack.c @@ -53,7 +53,8 @@ #ifdef NO_TIMES # define get_msecs() 0 -#elif defined(USE_WINTHREADS) || defined(AO_USE_WIN32_PTHREADS) +#elif (defined(USE_WINTHREADS) || defined(AO_USE_WIN32_PTHREADS)) \ + && !defined(CPPCHECK) # include unsigned long get_msecs(void) {