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

Fixed Visual Studio compiler warning #30

Merged
merged 2 commits into from
Nov 26, 2024
Merged

Conversation

jrade
Copy link
Contributor

@jrade jrade commented Nov 26, 2024

"#pragma GCC" causes warning 4068 "Unknown pragma" when compiling with Visual Studio 2022. Maybe the condition should be
#if defined(GNUC) || defined(clang)
instead. Both are used in the other files.

"#pragma GCC" causes warning 4068 "Unknown pragma" when compiling with Visual Studio 2022.
Maybe the condition should be
    #if defined(__GNUC__) || defined(__clang__)
instead. Both are used in the other files.
@greg7mdp
Copy link
Owner

Thanks for the fix @jrade . Please use the following instead, and I'll merge your PR.

#if defined(__GNUC__) || defined(__clang__)

Replaced
    #if defined(__GNUC__)
by
    #if defined(__GNUC__) || defined(__clang__)
@jrade
Copy link
Contributor Author

jrade commented Nov 26, 2024 via email

@greg7mdp greg7mdp merged commit bbfc46c into greg7mdp:main Nov 26, 2024
6 checks passed
@jrade
Copy link
Contributor Author

jrade commented Nov 27, 2024 via email

@greg7mdp
Copy link
Owner

Hum, it wouldn't hurt to add || defined(__clang__), but it may not be needed.

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