Skip to content

Conversation

@radarhere
Copy link
Member

When compiling on macOS, deprecation warnings for TIFF have started appearing.

In file included from src/decode.c:491:
src/libImaging/TiffDecode.h:35:5: warning: 'uint32' is deprecated [-Wdeprecated-declarations]
    uint32 ifd; /* offset of the ifd, used for multipage
    ^
/usr/local/Cellar/libtiff/4.3.0/include/tiff.h:84:45: note: 'uint32' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint32_t uint32 TIFF_GCC_DEPRECATED;
                                            ^
/usr/local/Cellar/libtiff/4.3.0/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
                                           ^

This is because of https://gitlab.com/libtiff/libtiff/-/merge_requests/205

This PR resolves the warnings by replacing uint16 and uint32 with uint16_t and uint32_t.

@radarhere radarhere added the TIFF label Apr 30, 2021
@hugovk hugovk merged commit c1e1aee into python-pillow:master May 9, 2021
@radarhere radarhere deleted the tiff_deprecations branch May 9, 2021 21:48
@radarhere radarhere mentioned this pull request Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants