aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorManuel Bergler <berglerma@gmail.com>2025-05-26 19:53:45 +0200
committerChris Packham <judge.packham@gmail.com>2025-05-29 08:38:12 +1200
commitdba47c8dbceedb096860add1a442660c3c0522da (patch)
treee41684eebae9148198e7e1185bb49413d12595e0 /samples
parent9a4a376bfb34e542003ca87008fc13f92fd9ead8 (diff)
downloadcrosstool-ng-dba47c8dbceedb096860add1a442660c3c0522da.tar.gz
crosstool-ng-dba47c8dbceedb096860add1a442660c3c0522da.tar.bz2
crosstool-ng-dba47c8dbceedb096860add1a442660c3c0522da.zip
gmp: Fix C23 compatibility patch to work with older host compilers
The patch added in 1e9bf8151513b054f60f34bc89507c31dc242cf0 changes the definition of the function `g` used in `configure` tests from `void g(){}` to `void g(int,t1 const*,t1,t2,t1 const*,int){}`. However, omitting parameter names in function definitions is a C23 feature. This thus causes configuration to fail with a GCC 9 host compiler: ```c conftest.c: In function 'g': conftest.c:7:8: error: parameter name omitted 7 | void g(int,t1 const*,t1,t2,t1 const*,int){} | ^~~ conftest.c:7:12: error: parameter name omitted 7 | void g(int,t1 const*,t1,t2,t1 const*,int){} | ^~~~~~~~~ conftest.c:7:22: error: parameter name omitted 7 | void g(int,t1 const*,t1,t2,t1 const*,int){} | ^~ conftest.c:7:25: error: parameter name omitted 7 | void g(int,t1 const*,t1,t2,t1 const*,int){} | ^~ conftest.c:7:28: error: parameter name omitted 7 | void g(int,t1 const*,t1,t2,t1 const*,int){} | ^~~~~~~~~ conftest.c:7:38: error: parameter name omitted 7 | void g(int,t1 const*,t1,t2,t1 const*,int){} Signed-off-by: Manuel Bergler <berglerma@gmail.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions