From 063ff67fcdd6976be214b6fb519d45c650d5498c Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 7 Mar 2025 00:59:25 +0100 Subject: Fixing a couple of warnings. --- fluid/shell_command.cxx | 2 +- src/Fl_Native_File_Chooser_Kdialog.cxx | 2 +- src/drivers/Unix/Fl_Unix_System_Driver.cxx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fluid/shell_command.cxx b/fluid/shell_command.cxx index 97c49f462..a6c49c823 100644 --- a/fluid/shell_command.cxx +++ b/fluid/shell_command.cxx @@ -365,7 +365,7 @@ void shell_pipe_cb(FL_SOCKET, void*) { static void expand_macro(std::string &cmd, const std::string ¯o, const std::string &content) { for (int i=0;;) { i = cmd.find(macro, i); - if (i==std::string::npos) break; + if (i==(int)std::string::npos) break; cmd.replace(i, macro.size(), content); } } diff --git a/src/Fl_Native_File_Chooser_Kdialog.cxx b/src/Fl_Native_File_Chooser_Kdialog.cxx index 18f6b9d03..75c5e6050 100644 --- a/src/Fl_Native_File_Chooser_Kdialog.cxx +++ b/src/Fl_Native_File_Chooser_Kdialog.cxx @@ -312,7 +312,7 @@ const char *Fl_Kdialog_Native_File_Chooser_Driver::title() const { // void Fl_Kdialog_Native_File_Chooser_Driver::shell_quote(Fl_String& s) { Fl_String out = "'"; // leading quote - for (int t=0; t