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

[build]: Replace fatal errors with conditional warnings for Clipboard Image Support #4476

Closed
wants to merge 19 commits into from

Conversation

evertonse
Copy link
Contributor

Fixes #4459

Conditional compilation warnings instead of warnings to inform developers about the necessary dependencies when enabling clipboard image support (e.g. SUPPORT_MODULE_RTEXTURES, specific image formats , etc ...).

This allows for more flexible configuration while still alerting users, although subtely.

@evertonse evertonse changed the title Building: Replace fatal **errors** with **conditional warnings** for *Clipboard Image Support* Building: Replace fatal errors with conditional warnings for Clipboard Image Support* Nov 10, 2024
@evertonse evertonse changed the title Building: Replace fatal errors with conditional warnings for Clipboard Image Support* Building: Replace fatal errors with conditional warnings for Clipboard Image Support Nov 10, 2024
@evertonse evertonse changed the title Building: Replace fatal errors with conditional warnings for Clipboard Image Support [build]: Replace fatal errors with conditional warnings for Clipboard Image Support Nov 10, 2024
Comment on lines +531 to +534
// Not needed because `rtexture.c` will automatically defined STBI_REQUIRED when any SUPPORT_FILEFORMAT_* is defined.
// #if !defined(STBI_REQUIRED)
// #pragma message ("Warning: "STBI_REQUIRED is not defined, that means we can't load images from clipbard"
// #endif

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
@evertonse evertonse closed this Nov 10, 2024
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.

1 participant