]> git.ipfire.org Git - thirdparty/curl.git/commit
tests: fix enum/int confusion (Intel C), fix autotools `CFLAGS` for `servers`
authorViktor Szakats <commit@vsz.me>
Thu, 13 Feb 2025 01:38:51 +0000 (02:38 +0100)
committerViktor Szakats <commit@vsz.me>
Thu, 13 Feb 2025 11:46:40 +0000 (12:46 +0100)
commit4aec6cdfd39a1cccd9ea5853e7687247ec219181
treeedfeb09a392ee5074f26b6d27e88f819637f967f
parentd550966bf8cb8d8d522465ff779b6f3585acaaa5
tests: fix enum/int confusion (Intel C), fix autotools `CFLAGS` for `servers`

By dropping the unused enum wrappers for `AF_*` macros.

Also fix `./configure` to apply `--enable-werror` options to
`tests/servers`, to catch this next time.

Seen with Intel C compiler:
```
socksd.c(184): warning #188: enumerated type mixed with another type
socksd.c(881): warning #188: enumerated type mixed with another type
[...]
sws.c(76): warning #188: enumerated type mixed with another type
sws.c(229): warning #188: enumerated type mixed with another type
[...]
```
Ref: https://github.com/curl/curl/actions/runs/13296520425/job/37129676921#step:40:338

Closes #16314
tests/server/Makefile.am
tests/server/socksd.c
tests/server/sws.c