Skip to content

Fix passing too many arguments to "init_test_strategies".#440

Merged
fador merged 1 commit into
ultravideo:masterfrom
fancycode:tests-too-many-arguments
Aug 18, 2025
Merged

Fix passing too many arguments to "init_test_strategies".#440
fador merged 1 commit into
ultravideo:masterfrom
fancycode:tests-too-many-arguments

Conversation

@fancycode

Copy link
Copy Markdown
Contributor

This fixes an issue when compiling with gcc-15:

gcc -DHAVE_CONFIG_H -I. -I..   -DKVZ_DLL_EXPORTS -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I.. -I../src -pthread -Wall -Wextra -Wvla -Wno-sign-compare -Wno-unused-parameter -I./src -I./src/extras -ftree-vectorize -fvisibility=hidden -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kvazaar-2.3.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o kvazaar_tests-tests_main.o `test -f 'tests_main.c' || echo './'`tests_main.c
tests_main.c: In function ‘main’:
tests_main.c:54:3: error: too many arguments to function ‘init_test_strategies’; expected 0, have 1
   54 |   init_test_strategies(1);
      |   ^~~~~~~~~~~~~~~~~~~~ ~
In file included from tests_main.c:35:
test_strategies.h:40:6: note: declared here
   40 | void init_test_strategies();
      |      ^~~~~~~~~~~~~~~~~~~~

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097138

@fador fador merged commit 4b8a5e0 into ultravideo:master Aug 18, 2025
@fador

fador commented Aug 18, 2025

Copy link
Copy Markdown
Member

Thanks for the fix!

@fancycode fancycode deleted the tests-too-many-arguments branch August 18, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants