Repository :
https://github.com/FarGroup/FarManager
On branch : master
Link :
https://github.com/FarGroup/FarManager/commit/a67dccaecbb80c505c2cd7f4ca77cf7b64cbd163
>---------------------------------------------------------------
commit a67dccaecbb80c505c2cd7f4ca77cf7b64cbd163
Author: Alex Alabuzhev <
alab...@gmail.com>
Date: Sun Dec 28 12:42:21 2025 +0000
Warnings
>---------------------------------------------------------------
a67dccaecbb80c505c2cd7f4ca77cf7b64cbd163
far/common/enumerator.hpp | 2 +-
far/diskmenu.cpp | 4 ++--
far/editor.cpp | 2 +-
far/keyboard.cpp | 2 +-
far/platform.chrono.hpp | 2 +-
far/plclass.hpp | 2 +-
far/plugins.cpp | 2 +-
far/plugins.hpp | 4 ++--
far/stddlg.hpp | 2 --
9 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/far/common/enumerator.hpp b/far/common/enumerator.hpp
index 91ce2cc89..139320fd3 100644
--- a/far/common/enumerator.hpp
+++ b/far/common/enumerator.hpp
@@ -128,7 +128,7 @@ public:
return m_Owner != nullptr;
}
- static inline constexpr size_t invalid_index{ static_cast<size_t>(-1) };
+ static constexpr size_t invalid_index{ static_cast<size_t>(-1) };
private:
template<typename V>
diff --git a/far/diskmenu.cpp b/far/diskmenu.cpp
index decb501e7..4f31e6a79 100644
--- a/far/diskmenu.cpp
+++ b/far/diskmenu.cpp
@@ -599,7 +599,7 @@ static bool DisconnectDrive(panel_ptr Owner, const disk_item& item, VMenu2 &ChDi
EjectVolume(item.Path);
return true;
}
- catch (std::exception const& e)
+ catch (std::exception const& e1)
{
// восстановим пути - это избавит нас от левых данных в панели.
if (AMode != panel_mode::PLUGIN_PANEL)
@@ -608,7 +608,7 @@ static bool DisconnectDrive(panel_ptr Owner, const disk_item& item, VMenu2 &ChDi
if (CMode != panel_mode::PLUGIN_PANEL)
Owner->SetCurDir(TmpCDir, false);
- if (EjectFailed(e, item.Path) != operation::retry)
+ if (EjectFailed(e1, item.Path) != operation::retry)
return false;
}
}
diff --git a/far/editor.cpp b/far/editor.cpp
index 7e634bce0..7af1ae887 100644
--- a/far/editor.cpp
+++ b/far/editor.cpp
@@ -3443,7 +3443,7 @@ namespace
class find_all_list
{
public:
- find_all_list(const size_t MaxLinesCount)
+ explicit find_all_list(const size_t MaxLinesCount)
: m_LineNumColumnMaxWidth{ radix10_formatted_width(MaxLinesCount) }
{}
diff --git a/far/keyboard.cpp b/far/keyboard.cpp
index cb1cb08ca..caa6b1a63 100644
--- a/far/keyboard.cpp
+++ b/far/keyboard.cpp
@@ -1461,7 +1461,7 @@ static string KeyToTextImpl(unsigned int const Key0, tfkey_to_text ToText, add_s
auto strKeyText = GetShiftKeyName(Key, ToText, AddSeparator);
// Ugh, ranges are awesome.
- if (const auto FKeys1Iterator = std::ranges::find_if(FKeys1, [&](TFKey const& Key){ return Key == FKey; }); FKeys1Iterator != std::cend(FKeys1))
+ if (const auto FKeys1Iterator = std::ranges::find_if(FKeys1, [&](TFKey const& k){ return k == FKey; }); FKeys1Iterator != std::cend(FKeys1))
{
AddSeparator(strKeyText);
append(strKeyText, ToText(*FKeys1Iterator));
diff --git a/far/platform.chrono.hpp b/far/platform.chrono.hpp
index 4154e30b3..fddf2e5ed 100644
--- a/far/platform.chrono.hpp
+++ b/far/platform.chrono.hpp
@@ -56,7 +56,7 @@ namespace os::chrono
using period = duration::period;
using time_point = std::chrono::time_point<nt_clock>;
- static inline constexpr bool is_steady = false;
+ static constexpr bool is_steady = false;
[[nodiscard]]
static time_point now() noexcept;
diff --git a/far/plclass.hpp b/far/plclass.hpp
index f9ab4b944..37c1904bc 100644
--- a/far/plclass.hpp
+++ b/far/plclass.hpp
@@ -319,7 +319,7 @@ protected:
m_Location = Location;
}
- static constexpr inline auto export_id = Export;
+ static constexpr auto export_id = Export;
using type = typename export_type<Export, Native>::type;
using detail::ExecuteStruct::operator=;
diff --git a/far/plugins.cpp b/far/plugins.cpp
index fcd7cfb4c..4341f8744 100644
--- a/far/plugins.cpp
+++ b/far/plugins.cpp
@@ -2100,7 +2100,7 @@ bool PluginManager::ProcessCommandLine(const string_view Command, function_ref<v
}
-void* PluginManager::CallPluginFromMacro(const UUID& SysID, OpenMacroInfo *Info) const
+void* PluginManager::CallPluginFromMacro(const UUID& SysID, OpenMacroInfo* Info) const
{
if (const auto Dlg = std::dynamic_pointer_cast<Dialog>(Global->WindowManager->GetCurrentWindow()))
{
diff --git a/far/plugins.hpp b/far/plugins.hpp
index 00c8226c8..8dd72a986 100644
--- a/far/plugins.hpp
+++ b/far/plugins.hpp
@@ -217,7 +217,7 @@ public:
size_t GetPluginInformation(Plugin* pPlugin, FarGetPluginInformation *pInfo, size_t BufferSize);
// $ .09.2000 SVS - Функция CallPlugin - найти плагин по ID и запустить OpenFrom = OPEN_*
bool CallPlugin(const UUID& SysID, int OpenFrom, void *Data) const;
- void* CallPluginFromMacro(const UUID& SysID, OpenMacroInfo *Data) const;
+ void* CallPluginFromMacro(const UUID& SysID, OpenMacroInfo* Info) const;
bool CallPluginItem(const UUID& Uuid, CallPluginInfo* Data) const;
void RefreshPluginsList();
const auto& Factories() const { return PluginFactories; }
@@ -240,7 +240,7 @@ private:
void UndoRemove(Plugin* plugin);
bool UpdateId(Plugin* pPlugin, const UUID& Id);
void LoadPluginsFromCache();
- bool ProcessPluginPanel(std::unique_ptr<plugin_panel>&& hNewPlugin, const bool fe_close) const;
+ bool ProcessPluginPanel(std::unique_ptr<plugin_panel>&& hNewPlugin, bool fe_close) const;
std::vector<std::unique_ptr<plugin_factory>> PluginFactories;
std::unordered_map<UUID, std::unique_ptr<Plugin>> m_Plugins;
diff --git a/far/stddlg.hpp b/far/stddlg.hpp
index e3cab2da2..331fc826f 100644
--- a/far/stddlg.hpp
+++ b/far/stddlg.hpp
@@ -230,8 +230,6 @@ public:
void set_size(unsigned long long Size) const;
};
-struct error_state_ex;
-
void error_lookup(error_state_ex const& ErrorState);
#endif // STDDLG_HPP_D7E3481D_D478_4F57_8C20_7E0A21FAE788