DanBloomberg / leptonica

Leptonica is an open source library containing software that is broadly useful for image processing and image analysis applications. The official github repository for Leptonica is: danbloomberg/leptonica. See leptonica.org for more documentation.
Other
1.72k stars 384 forks source link

Remove redundant assignment (fixes compiler warning) #718

Closed stweil closed 8 months ago

stweil commented 8 months ago

The member variable bpp is deprecated and a synonym for the member variable prec, which already has the same value assigned to it, so remove the redundant assignment to bpp. This fixes a compiler warning:

src/jp2kio.c: In function 'pixConvertToOpjImage': src/jp2kio.c:726:9: warning: 'bpp' is deprecated: Use prec instead [-Wdeprecated-declarations] 726 | cmptparm[i].bpp = 8; | ^~~~

DanBloomberg commented 8 months ago

Thank you for this!