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

[build]: Fix socket type for MinGW #2152

Merged
merged 1 commit into from
Oct 11, 2021
Merged

[build]: Fix socket type for MinGW #2152

merged 1 commit into from
Oct 11, 2021

Conversation

Biswa96
Copy link
Contributor

@Biswa96 Biswa96 commented Oct 8, 2021

Just use SOCKET type for any WIN32 environment including MinGW.
This fixes the warnings like:

srt/srtcore/channel.cpp:167:19: warning: comparison of integer expressions of different signedness: 'UDPSOCKET' {aka 'int'} and 'SOCKET' {aka 'long long unsigned int'} [-Wsign-compare]
  167 |     if (m_iSocket == INVALID_SOCKET)
      |                   ^

Just use SOCKET type for any WIN32 environment including MinGW.
This fixes the warnings like:
srt/srtcore/channel.cpp:167:19: warning: comparison of integer expressions of different signedness: 'UDPSOCKET' {aka 'int'} and 'SOCKET' {aka 'long long unsigned int'} [-Wsign-compare]
  167 |     if (m_iSocket == INVALID_SOCKET)
      |                   ^
@maxsharabayko maxsharabayko added this to the v1.4.5 milestone Oct 11, 2021
@maxsharabayko maxsharabayko added [core] Area: Changes in SRT library core Type: Maintenance Work required to maintain or clean up the code [API] Area: Changes in SRT library API and removed [core] Area: Changes in SRT library core labels Oct 11, 2021
@maxsharabayko maxsharabayko merged commit 2fb3c9a into Haivision:master Oct 11, 2021
@Biswa96 Biswa96 deleted the mingw-socket-type branch October 11, 2021 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[API] Area: Changes in SRT library API Type: Maintenance Work required to maintain or clean up the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants