Skip to content

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
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
…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 curl#188: enumerated type mixed with another type
socksd.c(881): 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
[...]
```
Ref: https://github.com/curl/curl/actions/runs/13296520425/job/37129676921#step:40:338

Closes curl#16314
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