Skip to content

Fix a few warnings#1632

Merged
rouault merged 4 commits into
uclouvain:masterfrom
nico:warning-fixes
May 4, 2026
Merged

Fix a few warnings#1632
rouault merged 4 commits into
uclouvain:masterfrom
nico:warning-fixes

Conversation

@nico

@nico nico commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

With this, things build without warnings for me (macOX, Xcode 26.2) when using
CMAKE_C_FLAGS="-Wall -Wextra -Wconversion -Wno-unused-parameter -Wdeclaration-after-statement -Werror=declaration-after-statement"

Per #1629 (comment), those are the warnings used on CI.

No intended behavior change.

nico added 4 commits April 24, 2026 11:16
It's been unused since 1c5627e.

Fixes one -Wunused-function warning.
This has been unused since this function was added back in 3a78e80
(called tcd_dc_level_shift_encode back then, in libopenjpeg/tcd.c
back then).

Fixes a -Wunused-but-set-variable warning.
This has been unused since this function was added back in b551844
(called pi_create_decode_v2 back then, in libopenjpeg/pi.c back then).

Fixes a -Wunused-but-set-variable warning.
This has been unused since this function was added back in 3a78e80
(called pi_initialise_encode_v2 back then, in libopenjpeg/pi.c back then).

Fixes a -Wunused-but-set-variable warning.
@nico nico mentioned this pull request Apr 24, 2026
@nico

nico commented Apr 30, 2026

Copy link
Copy Markdown
Contributor Author

This should be harmless to merge, as it's behavior preserving.

@nico

nico commented May 1, 2026

Copy link
Copy Markdown
Contributor Author

Hey, the first commit effectively cherry-picks https://source.chromium.org/chromium/chromium/src/+/main:third_party/pdfium/third_party/libopenjpeg/0039-opj_mqc_renorme.patch;l=1?q=0039-opj_mqc_renorme.patch&sq= , so this is in a way part of upstreaming pdfium downstream patches. (I wasn't aware of that when I made this PR.)

@nico

nico commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

@rouault Friendliest, gentlest, tendermost ping.

@rouault rouault merged commit 21b70b0 into uclouvain:master May 4, 2026
14 checks passed
@nico nico deleted the warning-fixes branch May 5, 2026 18:27
@nico

nico commented May 5, 2026

Copy link
Copy Markdown
Contributor Author

Thanks!

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