Fix LTO and _FORTIFY_SOURCE=2 warnings (fixes #5965)

Tested with GCC 9 and 10 on AMD64.
This commit is contained in:
Flössie
2020-10-26 11:25:47 +01:00
parent 0bca993c73
commit 75f44d3f2b
3 changed files with 7 additions and 7 deletions

View File

@@ -279,7 +279,7 @@ void RawImageSource::getAutoMatchedToneCurve(const ColorManagementParams &cp, st
{
RawMetaDataLocation rml;
eSensorType sensor_type;
int w, h;
int w = 0, h = 0;
std::unique_ptr<Thumbnail> thumb(Thumbnail::loadQuickFromRaw(getFileName(), rml, sensor_type, w, h, 1, false, true, true));
if (!thumb) {
if (settings->verbose) {