tests/server: drop memdebug option

I added it just in case when removing enabled-by-default memdebug
from test servers. Apparently it broke after recent changes. It's
probably not a widely used feature and does not seem to be worth fixing.
It creates odd dependencies as the error message indicates:

```
[28/54] Building C object tests/server/CMakeFiles/servers.dir/__/__/lib/memdebug.c.obj
FAILED: tests/server/CMakeFiles/servers.dir/__/__/lib/memdebug.c.obj
[...]
lib/memdebug.c: In function 'curl_dbg_log':
lib/memdebug.c:465:12: error: implicit declaration of function 'mvsnprintf'; did you mean 'vsnprintf'? [-Wimplicit-function-declaration]
  465 |   nchars = mvsnprintf(buf, sizeof(buf), format, ap);
      |            ^~~~~~~~~~
      |            vsnprintf
lib/memdebug.c:465:12: warning: nested extern declaration of 'mvsnprintf' [-Wnested-externs]
```

This patch is dropping these build options:
- cmake: `ENABLE_SERVER_DEBUG`
- autotools: `--enable-server-debug` / `--disable-server-debug`

Follow-up to a16485a42e #16705

Closes #17629
This commit is contained in:
Viktor Szakats 2025-06-15 23:28:08 +02:00
parent ee06673296
commit fffec3d7e9
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
6 changed files with 2 additions and 49 deletions

View file

@ -579,25 +579,6 @@ case $host_os in
;;
esac
dnl Apply curl debug options to test servers
OPT_SERVER_DEBUG="default"
AC_ARG_ENABLE(server-debug,
AS_HELP_STRING([--enable-server-debug],[Enable debug options for test servers])
AS_HELP_STRING([--disable-server-debug],[Disable debug options for test servers]),
OPT_SERVER_DEBUG=$enableval)
case "$OPT_SERVER_DEBUG" in
no)
dnl --disable-server-debug option used
want_server_debug="no"
;;
*)
dnl --enable-server-debug option used or not specified
want_server_debug="no"
;;
esac
AC_MSG_RESULT([$want_server_debug])
AM_CONDITIONAL(ENABLE_SERVER_DEBUG, test x$want_server_debug = xyes)
dnl **********************************************************************
dnl Compilation based checks should not be done before this point.
dnl **********************************************************************