Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: fix enum/int confusion (Intel C), fix autotools CFLAGS for servers #16314

Closed
wants to merge 2 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Feb 13, 2025

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

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

In test servers:
```
socksd.c(184): warning curl#188: enumerated type mixed with another type
socksd.c(881): warning curl#188: enumerated type mixed with another type
socksd.c(889): warning curl#188: enumerated type mixed with another type
socksd.c(898): warning curl#188: enumerated type mixed with another type
socksd.c(1042): warning curl#188: enumerated type mixed with another type
socksd.c(1066): warning curl#188: enumerated type mixed with another type
sws.c(76): warning curl#188: enumerated type mixed with another type
sws.c(229): warning curl#188: enumerated type mixed with another type
sws.c(231): warning curl#188: enumerated type mixed with another type
sws.c(1340): warning curl#188: enumerated type mixed with another type
sws.c(1353): warning curl#188: enumerated type mixed with another type
sws.c(1367): warning curl#188: enumerated type mixed with another type
sws.c(2114): warning curl#188: enumerated type mixed with another type
sws.c(2121): warning curl#188: enumerated type mixed with another type
sws.c(2138): warning curl#188: enumerated type mixed with another type
sws.c(2253): warning curl#188: enumerated type mixed with another type
sws.c(2261): warning curl#188: enumerated type mixed with another type
sws.c(2270): warning curl#188: enumerated type mixed with another type
```
https://github.com/curl/curl/actions/runs/13296520425/job/37129676921#step:40:338
@vszakats vszakats changed the title build: fix enum/int confusion (Intel C compiler warnings) tests: fix enum/int confusion (Intel C compiler warnings) Feb 13, 2025
@vszakats vszakats changed the title tests: fix enum/int confusion (Intel C compiler warnings) tests: fix enum/int confusion (Intel C), fix autotools CFLAGS for tests/servers Feb 13, 2025
@vszakats vszakats changed the title tests: fix enum/int confusion (Intel C), fix autotools CFLAGS for tests/servers tests: fix enum/int confusion (Intel C), fix autotools CFLAGS for tests/servers Feb 13, 2025
@vszakats vszakats changed the title tests: fix enum/int confusion (Intel C), fix autotools CFLAGS for tests/servers tests: fix enum/int confusion (Intel C), fix autotools CFLAGS for servers Feb 13, 2025
@vszakats vszakats closed this in 4aec6cd Feb 13, 2025
@vszakats vszakats deleted the b-enum-intelc branch February 13, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant