From f9f91fa8b9eee3002aed62a205b57b0d6b5581fd Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Sat, 12 Apr 2014 23:58:19 +0200 Subject: [PATCH] CTestCustom: Suppress warnings about rand() and srand() on OpenBSD We don't do crypto here, so a "poor" random doesn't matter. In fact we have API to allow people to get a repeatable sequence by setting a specific seed. --- CTestCustom.cmake.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in index 3c589b45e..65a317db3 100644 --- a/CTestCustom.cmake.in +++ b/CTestCustom.cmake.in @@ -55,6 +55,8 @@ set(CTEST_CUSTOM_WARNING_EXCEPTION "warning.*This version of Mac OS X is unsupported" "clang.*: warning: argument unused during compilation: .-g" "note: in expansion of macro" # diagnostic context note + "cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*rand.*isn.*t random" # we do not do crypto + "cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*srand.*seed choices are.*poor" # we do not do crypto # Ignore clang's summary warning, assuming prior text has matched some # other warning expression: