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

C26819 Warning in Visual Studio with SDL_stdinc.h file #11637

Open
Alias10294 opened this issue Dec 12, 2024 · 3 comments
Open

C26819 Warning in Visual Studio with SDL_stdinc.h file #11637

Alias10294 opened this issue Dec 12, 2024 · 3 comments

Comments

@Alias10294
Copy link

After trying to use templates for a class but reverting the changes the warning popped up for lines 553, 554, 555 and 556.

@icculus
Copy link
Collaborator

icculus commented Dec 12, 2024

What was the warning? Can you paste it here?

@Kontrabant
Copy link
Contributor

That's an unannotated switch fallthrough warning, and the section of code is this:
https://github.com/libsdl-org/SDL/blob/ad93f50ee6408c90eec0d96867b41046392bb426/include/SDL_stdinc.h#L567C1-L573C6

However, it is annotated. How old is the version of SDL in use here?

@Alias10294
Copy link
Author

Alias10294 commented Dec 15, 2024

image

I am using vcpkg to install the library on version 2.30.10 which is the latest.
It might just be an issue with Visual Studio, although when I looked at the code here on Github the problematic section is not on 553, 554, 555 and 556.

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

No branches or pull requests

3 participants