From d2ceb2e353304aeb91db4982afd8adeefdae3c3b Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Mon, 21 Feb 2022 20:40:27 +0800 Subject: 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 Reviewed-by: Alexey Edelev --- cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/3rdparty') diff --git a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake index 16dc1768ea..a3573bacd4 100644 --- a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake +++ b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake @@ -123,7 +123,7 @@ list(APPEND CMAKE_REQUIRED_DEFINITIONS "${EGL_DEFINITIONS}") check_cxx_source_compiles(" #include -int main(int argc, char *argv[]) { +int main(int, char **) { EGLint x = 0; EGLDisplay dpy = 0; EGLContext ctx = 0; eglDestroyContext(dpy, ctx); }" HAVE_EGL) -- cgit v1.2.3