Skip to content

fix: Eliminate compiler warnings in image loaders - #100

Merged
dogo merged 1 commit into
masterfrom
fix-warnings
Oct 16, 2025
Merged

fix: Eliminate compiler warnings in image loaders#100
dogo merged 1 commit into
masterfrom
fix-warnings

Conversation

@dogo

@dogo dogo commented Oct 16, 2025

Copy link
Copy Markdown
Owner

Resolves compiler warnings in image loading code:

  • Use size_t for loop counters when comparing with sizeof()
  • Use JDIMENSION type for JPEG image width comparisons
  • Mark PNG callback functions as static with forward declarations
  • Suppress unused parameter warnings with (void) casts

Warnings fixed: -Wsign-compare, -Wmissing-prototypes, -Wunused-parameter

No functional changes.

- Use size_t for loop counters when comparing with sizeof()
- Use JDIMENSION type for JPEG image width comparisons
- Mark PNG callback functions as static with proper declarations
- Suppress unused parameter warnings with void casts
@dogo
dogo merged commit 37452ca into master Oct 16, 2025
4 checks passed
@dogo
dogo deleted the fix-warnings branch October 16, 2025 12:57
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