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

Disable -Wredundant-decls in CMake on Windows build #38402

Merged
merged 1 commit into from
Feb 27, 2020

Conversation

Qrox
Copy link
Contributor

@Qrox Qrox commented Feb 27, 2020

Summary

SUMMARY: None

Purpose of change

This check was causing compilation errors on MinGW-w64 on Windows, and was failing even in system headers.

Describe the solution

Fixed the first error reported, i.e. redundant declaration of nanosleep. It now skips the custom definition if it's using winpthread. The next error was about some built-in function being a redundant declaration of a function in intrin.h, and does not seem to be fixable on our end, so the warning itself was suppressed instead.

Testing

Game compiles.

@ZhilkinSerg ZhilkinSerg added Code: Build Issues regarding different builds and build environments OS: Windows Issues related to Windows operating system labels Feb 27, 2020
@ZhilkinSerg ZhilkinSerg merged commit 0dda391 into CleverRaven:master Feb 27, 2020
@Qrox Qrox deleted the redundant-decl branch February 28, 2020 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Build Issues regarding different builds and build environments OS: Windows Issues related to Windows operating system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants