Merge pull request #6873 from 0v3rt1r3d/0v3rt1r3d/fix-a-couple-of-warnings

Fix a couple of warnings
This commit is contained in:
Lawrence37
2024-01-27 21:46:14 -08:00
committed by GitHub
8 changed files with 14 additions and 8 deletions

View File

@@ -393,7 +393,9 @@ Gtk::TreePath DirBrowser::expandToDir (const Glib::ustring& absDirPath)
char* dcpy = strdup (absDirPath.c_str());
char* dir = strtok (dcpy, "/\\");
#ifdef _WIN32
int count = 0;
#endif
expandSuccess = true;
#ifndef _WIN32
@@ -436,8 +438,9 @@ Gtk::TreePath DirBrowser::expandToDir (const Glib::ustring& absDirPath)
++ix;
++i;
}
#ifdef _WIN32
count++;
#endif
dir = strtok(nullptr, "/\\");
}

View File

@@ -24,7 +24,7 @@
#include "guiutils.h"
class EditorPanel;
class ExternalEditor;
struct ExternalEditor;
class RTWindow;
class EditWindow :

View File

@@ -445,7 +445,7 @@ void FlatField::setGainMap(bool enabled) {
flatFieldFromMetaData->set_sensitive(enabled);
if (!enabled) {
idle_register.add(
[this, enabled]() -> bool
[this]() -> bool
{
disableListener();
flatFieldFromMetaData->setValue(false);

View File

@@ -30,7 +30,7 @@ namespace rtengine
namespace procparams
{
class ColorManagementParams;
struct ColorManagementParams;
}

View File

@@ -28,7 +28,7 @@ namespace rtengine
namespace procparams
{
class ColorManagementParams;
struct ColorManagementParams;
}