summaryrefslogtreecommitdiffstats
path: root/cmake/FindWrapRt.cmake
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2022-02-21 20:40:27 +0800
committerTim Blechmann <tim@klingt.org>2022-02-22 02:02:48 +0800
commitd2ceb2e353304aeb91db4982afd8adeefdae3c3b (patch)
tree13a1664ebfd1325050f645a72d29d1cb8b58a910 /cmake/FindWrapRt.cmake
parent87610786290e4acf1a60014544df6fc4d3a33099 (diff)
cmake: avoid unused parameters in cmake tests
unused parameters in cmake tests cause the tests to fail when the project is configured with `-Werror,-Wunused-parameter` Change-Id: If3065d008753a7718282dfc6ba0d79d46576cb34 Pick-to: 6.2 6.3 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'cmake/FindWrapRt.cmake')
-rw-r--r--cmake/FindWrapRt.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindWrapRt.cmake b/cmake/FindWrapRt.cmake
index 779d18d1a0..95be415b50 100644
--- a/cmake/FindWrapRt.cmake
+++ b/cmake/FindWrapRt.cmake
@@ -21,7 +21,7 @@ check_cxx_source_compiles("
#include <unistd.h>
#include <time.h>
-int main(int argc, char *argv[]) {
+int main(int, char **) {
timespec ts; clock_gettime(CLOCK_REALTIME, &ts);
}" HAVE_GETTIME)