summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-02-12 12:31:17 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2021-02-15 13:43:52 +0100
commit73fbf8bd303053a091fc63d0ad741a071bb50fae (patch)
tree6c0925d94b9b7e109602895159cad6c515b068ff /util
parent5645ef305ad02ffec6591e7331cc8df30ba3572a (diff)
Simplify test-snippets in configure.cmake
The main(void) signature obviates the need for unused parameters and has existed since (at least) C89; so use that instead of the old-fashioned argc/argv arguments we don't use in any of these tests. Change-Id: Ibfe850a1fce378673c9781011475ea623fd75ad4 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/configurejson2cmake.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index 160557e18d..13ccfa85f6 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -655,9 +655,8 @@ def write_compile_test(
sourceCode += tail + "\n"
- sourceCode += "int main(int argc, char **argv)\n"
+ sourceCode += "int main(void)\n"
sourceCode += "{\n"
- sourceCode += " (void)argc; (void)argv;\n"
sourceCode += " /* BEGIN TEST: */\n"
def resolve_main(detail):