From 5c7ec727e059738828ae61bafb5fe5f8b482b267 Mon Sep 17 00:00:00 2001 From: Adam Reichold Date: Fri, 3 Jan 2020 22:12:20 +0100 Subject: Remove the error callback data pointer as none of the frontends make use of it. --- test/perf-test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/perf-test.cc') diff --git a/test/perf-test.cc b/test/perf-test.cc index 70220cd3..03f78788 100644 --- a/test/perf-test.cc +++ b/test/perf-test.cc @@ -739,7 +739,7 @@ static void StrList_Destroy(StrList **root) *root = nullptr; } -static void my_error(void *, ErrorCategory, Goffset pos, const char *msg) { +static void my_error(ErrorCategory, Goffset pos, const char *msg) { #if 0 char buf[4096], *p = buf; @@ -1230,7 +1230,7 @@ static void RenderCmdLineArg(char *cmdLineArg) int main(int argc, char **argv) { - setErrorCallback(my_error, nullptr); + setErrorCallback(my_error); ParseCommandLine(argc, argv); if (0 == StrList_Len(&gArgsListRoot)) PrintUsageAndExit(argc, argv); -- cgit v1.2.3