summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Krause <vkrause@kde.org>2022-06-04 10:01:05 +0200
committerThiago Macieira <thiago.macieira@intel.com>2022-06-08 17:43:34 +0000
commit193039dff343139de4a83b7811c11927be63a4ed (patch)
tree18792466fe49aa74bcc61a045cf1f6a0cfa49d41
parent6f9f6849c53e057e8b4186db64a1a6b5e1f31eca (diff)
Fix renameat2 configure check
Give this a chance to ever succeed by not using undefined variables in the test code. Found by a KDE unit test observing changes in inotify behavior between Qt5 and Qt6. Pick-to: 6.2 6.3 6.3.1 Change-Id: Iceb743d88dfa093c02d76ce32ea5c8ced24bfc5b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--src/corelib/configure.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/configure.cmake b/src/corelib/configure.cmake
index 101e7a6ec7..b29f24172a 100644
--- a/src/corelib/configure.cmake
+++ b/src/corelib/configure.cmake
@@ -435,7 +435,7 @@ qt_config_compile_test(renameat2
#include <fcntl.h>
#include <stdio.h>
-int main(void)
+int main(int, char **argv)
{
/* BEGIN TEST: */
renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);