DIPlib / diplib

Quantitative Image Analysis in C++, MATLAB and Python
https://diplib.org
Apache License 2.0
222 stars 49 forks source link

Deprecation warning when compiling libjpeg #142

Closed crisluengo closed 7 months ago

crisluengo commented 9 months ago

Building libjpeg as included in the DIPlib repo gives the following warning when building with a newer Clang compiler:

warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]

If a newer libjpeg is available that has corrected this issue, we should upgrade. Otherwise we should fix this ourselves and submit a PR for libjpeg.

crisluengo commented 7 months ago

Completed in 333e0fd0.