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

code cleanup: C cast not required anymore as _cmsGetTransformFlags(struct _cmstransform_struct* CMMcargo) already matches the incoming type. #467

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

GerHobbelt
Copy link
Contributor

Another bit that showed during 'pedantic warning mode' MSVC build…

This does away with a C type cast which is not required any more as the variable's type matches the function argument / prototype exactly already without it. No functional change, just a bit of cleanup.


🙏 please forgive the shoddy commit message for this one as that's a straight (edited) cherry-pick off another branch of mine, which tracks lcms2mt. It's crud and this PR description is overriding. 🙏

… C++) mode: this uncovered a few unneccessary casts and required a few others (void pointer conversions).

# Conflicts:
#	include/lcms2.h
#	include/lcms2_plugin.h
#	plugins/fast_float/src/fast_16_tethra.c
#	plugins/fast_float/src/fast_8_curves.c
#	plugins/fast_float/src/fast_8_matsh.c
#	plugins/fast_float/src/fast_8_matsh_sse.c
#	plugins/fast_float/src/fast_8_tethra.c
#	plugins/fast_float/src/fast_float_15mats.c
#	plugins/fast_float/src/fast_float_cmyk.c
#	plugins/fast_float/src/fast_float_curves.c
#	plugins/fast_float/src/fast_float_lab.c
#	plugins/fast_float/src/fast_float_matsh.c
#	plugins/fast_float/src/fast_float_tethra.c
#	plugins/threaded/src/threaded_internal.h
#	plugins/threaded/src/threaded_scheduler.c
#	src/cmscgats.c
#	src/cmstypes.c
#	src/cmsxform.c
#	src/extra_xform.h
@mm2 mm2 merged commit 0680de1 into mm2:master Jan 13, 2025
9 of 10 checks passed
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