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

Add additional warning flags and PNGLIB_FALLTHROUGH #572

Open
wants to merge 1 commit into
base: libpng16
Choose a base branch
from

Conversation

r-barnes
Copy link

@r-barnes r-barnes commented Aug 6, 2024

No description provided.

@r-barnes r-barnes mentioned this pull request Aug 6, 2024
@jbowler
Copy link
Contributor

jbowler commented Sep 6, 2024

Since the ISO C standard has defined how to do this across all compilers and all the compilers I have already support it it should be done in the standard way. Doing it like all the other __attribute settings in pngconf.h might be acceptable in 1.6 but existing systems that recognize /FALLTHROUGH/ and don't support __has_attribute need to be handled.

It's moot for 1.8 because I'm about to send a PR to use __has_c_attribute in place of all the current stuff. In particular the current VC support cannot implement PNG_USE_RESULT, [[nodiscard]].

https://learn.microsoft.com/en-us/cpp/code-quality/c26819?view=msvc-170

@jbowler
Copy link
Contributor

jbowler commented Sep 19, 2024

@ctruta: fixed by #590

@jbowler
Copy link
Contributor

jbowler commented Oct 3, 2024

@ctruta: fixed by @610

@610
Copy link

610 commented Oct 4, 2024

@jbowler Doubt it was me :)

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.

3 participants