Anyone have a solution for src/c/qsort.c:75:60: error: too many arguments to function 'cmp'; expected 0, have 5
?
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I./src/c/ -I./src/cpp/ -I../../modules/ast/includes/ast/ -I../../modules/ast/includes/exps/ -I../../modules/ast/includes/operations/ -I../../modules/ast/includes/parse/ -I../../modules/ast/includes/symbol/ -I../../modules/ast/includes/system_env/ -I../../modules/ast/includes/types/ -I../../modules/dynamic_link/includes -I../../modules/api_scilab/includes/ -I../../modules/console/includes/ -I../../modules/localization/includes/ -I../../modules/output_stream/includes/ -I../../modules/threads/includes/ -I../../modules/string/includes/ -DNDEBUG -g1 -O2 -m64 -fno-stack-protector -Wall -Wpedantic -fdiagnostics-show-option -Wformat -Werror=format-security -Werror=implicit -Werror=incompatible-pointer-types -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/scilab/src=/usr/src/debug/scilab -flto=auto -fcommon -MT src/c/libscielementary_functions_algo_la-qsort.lo -MD -MP -MF src/c/.deps/libscielementary_functions_algo_la-qsort.Tpo -c src/c/qsort.c -fPIC -DPIC -o src/c/.libs/libscielementary_functions_algo_la-qsort.o
src/c/qsort.c: In function 'sciqsort':
src/c/qsort.c:75:60: error: too many arguments to function 'cmp'; expected 0, have 5
75 | for (pl = pm, tabl = tabm ; pl > (char *) a && cmp(pl - es, pl, tabl - es1, tabl, flag) > 0; pl -= es, tabl -= es1)
| ^~~ ~~~~~~~
In file included from src/c/qsort.c:10:
src/c/qsort.h:23:20: error: too many arguments to function 'swapcode'; expected 0, have 4
23 | #define swap(a, b) swapcode(a, b, 1,es)
| ^~~~~~~~
src/c/qsort.c:78:17: note: in expansion of macro 'swap'
78 | swap(pl, pl - es);
| ^~~~
src/c/qsort.c:100:88: error: too many arguments to function 'cmp'; expected 0, have 4
100 | med3(pl, tabl, pl, pl + d, pl + 2 * d, tabl, tabl + dind, tabl + 2 * dind, cmp);
| ~~ ^~~
...
Pinned Comments
carlosal1015 commented on 2024-11-17 18:01 (UTC)
Open issue https://gitlab.com/scilab/scilab/-/issues/16429