Fix compiler warnings

This commit is contained in:
Lawrence Lee
2024-11-17 15:39:07 -08:00
parent 4e9ceff1e9
commit cf20964b59
4 changed files with 3 additions and 17 deletions

View File

@@ -53,20 +53,6 @@
namespace
{
bool checkRawImageThumb (const rtengine::RawImage& raw_image)
{
if (!raw_image.is_supportedThumb()) {
return false;
}
const ssize_t length =
fdata (raw_image.get_thumbOffset(), raw_image.get_file())[1] != 0xD8 && raw_image.is_ppmThumb()
? raw_image.get_thumbWidth() * raw_image.get_thumbHeight() * (raw_image.get_thumbBPS() / 8) * 3
: raw_image.get_thumbLength();
return raw_image.get_thumbOffset() + length <= raw_image.get_file()->size;
}
/**
* Apply the black level adjustments in the processing parameters.
*