From faddc3947f351e7097b2061fa22fcfc458897574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Devernay?= Date: Wed, 18 Jan 2017 10:13:31 +0100 Subject: [PATCH] fix warnings --- Distortion/Distortion.cpp | 8 ++++---- Reformat/Reformat.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Distortion/Distortion.cpp b/Distortion/Distortion.cpp index 416c9ee30..473b30914 100644 --- a/Distortion/Distortion.cpp +++ b/Distortion/Distortion.cpp @@ -1701,10 +1701,10 @@ DistortionPlugin::getDistortionModel(const OfxRectI& format, const OfxPointD& re break; } case eDistortionModelPFBarrel: { - double par = 1.; - if (_srcClip) { - par = _srcClip->getPixelAspectRatio(); - } + //double par = 1.; + //if (_srcClip) { + // par = _srcClip->getPixelAspectRatio(); + //} double c3 = _pfC3->getValueAtTime(time); double c5 = _pfC5->getValueAtTime(time); double xp, yp; diff --git a/Reformat/Reformat.cpp b/Reformat/Reformat.cpp index 8484251d5..9acbd2544 100644 --- a/Reformat/Reformat.cpp +++ b/Reformat/Reformat.cpp @@ -407,7 +407,7 @@ ReformatPlugin::getOutputFormat(const double time, return; } - OfxRectD boxRod = { 0., 0., boxSize.x * boxPAR, boxSize.y}; + OfxRectD boxRod = { 0., 0., (double)boxSize.x * boxPAR, (double)boxSize.y}; #ifdef OFX_EXTENSIONS_NATRON OfxRectD srcRod; OfxRectI srcFormat;