fixed Clang warnings in rtengine and rtexif

This commit is contained in:
Alberto Griggio 2017-04-01 13:34:16 +02:00
parent 24fd816c36
commit 73afa054c4
4 changed files with 3 additions and 6 deletions

View File

@ -1530,7 +1530,7 @@ void Color::interpolateRGBColor (float realL, float iplow, float iphigh, int alg
int toDo, const double xyz_rgb[3][3], const double rgb_xyz[3][3], float &ro, float &go, float &bo)
{
float X1, Y1, Z1, X2, Y2, Z2, X, Y, Z, XL, YL, ZL;
float L1, L2, LL, a_1 = 0.f, b_1 = 0.f, a_2, b_2, a_L, b_L;
float L1 = 0.f, L2, LL, a_1 = 0.f, b_1 = 0.f, a_2, b_2, a_L, b_L;
// converting color 1 to Lab (image)
Color::rgbxyz(r1, g1, b1, X1, Y1, Z1, xyz_rgb);

View File

@ -4634,7 +4634,7 @@ void ImProcFunctions::rgbProc (Imagefloat* working, LabImage* lab, PipetteBuffer
else if (params->colorToning.method == "Lab" && opautili) {
int algm = 0;
bool twocol = true;
int metchrom;
int metchrom = 0;
if (params->colorToning.twocolor == "Std" ) {
metchrom = 0;

View File

@ -71,9 +71,7 @@ PreviewImage::PreviewImage (const Glib::ustring &fname, const Glib::ustring &ext
int w, h;
double scale = 1.;
if (tpp) {
tpp->getDimensions(w, h, scale);
}
tpp->getDimensions(w, h, scale);
previewImage = Cairo::ImageSurface::create(Cairo::FORMAT_RGB24, w, h);
previewImage->flush();

View File

@ -20,7 +20,6 @@ void parseKodakIfdTextualInfo(Tag *textualInfo, Tag* exif_)
TagDirectory *exif = exif_->getDirectory();
char *value = (char *)textualInfo->getValue();
int valuesize = textualInfo->getValueSize();
char *p = value;
char *pc, *plf;