Skip to content

resolve compiler warnings #1246

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

Merged
merged 2 commits into from
Apr 14, 2022
Merged

resolve compiler warnings #1246

merged 2 commits into from
Apr 14, 2022

Conversation

greenfish77
Copy link
Contributor

resolve compiler warnings (from Visual Studio 2019).

  • check WSAStartup return.
  • const is not suitable for std::move.

- check `WSAStartup` return.
- `const` is not suitable for `std::move`.
@yhirose
Copy link
Owner

yhirose commented Apr 13, 2022

@greenfish77, thanks for the pull request. Could you replace startup with is_valid_ for consistency in httplib.h?

- bool startup => bool is_valid_.
- remove `const` not removed.
@greenfish77
Copy link
Contributor Author

@greenfish77, thanks for the pull request. Could you replace startup with is_valid_ for consistency in httplib.h?

@yhirose, I made a new commit.

@yhirose yhirose merged commit 5d87cc0 into yhirose:master Apr 14, 2022
@yhirose
Copy link
Owner

yhirose commented Apr 14, 2022

@greenfish77, thanks for your contribution!

ExclusiveOrange pushed a commit to ExclusiveOrange/cpp-httplib-exor that referenced this pull request May 2, 2023
* resolve compiler warnings

- check `WSAStartup` return.
- `const` is not suitable for `std::move`.

* resolve compiler warnings

- bool startup => bool is_valid_.
- remove `const` not removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants