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

Fix Windows CMake build errors #8789

Merged
merged 1 commit into from May 3, 2020

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented May 2, 2020

Lambda expressions with uncaptured constants were leading to errors, and there were also some warnings about deprecated functions (QFontMetrics::width and inet_ntoa).

static QString GetAddressAndPort(const sockaddr_in& addr)
{
char buffer[16];
const char* addr_str = inet_ntop(AF_INET, &addr.sin_addr, buffer, sizeof(buffer));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the advantage of this vs the inet_ntoa that you were using before? Any concerns with the buffer not being large enough?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visual Studio gives me a warning when I use inet_ntoa, and that warning gets turned into an error by our build settings. I don't know much beyond that, though I did find this comment when searching for more info about it: SFML/SFML#1023 (comment)

Lambda expressions with uncaptured constants were leading to errors,
and there were also some warnings about deprecated functions
(QFontMetrics::width and inet_ntoa).
@leoetlino leoetlino merged commit 1b26929 into dolphin-emu:master May 3, 2020
@JosJuice JosJuice deleted the windows-cmake-errors branch May 3, 2020 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants