diff options
| author | phonetic112 <73647246+phonetic112@users.noreply.github.com> | 2024-06-13 17:23:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-13 23:23:23 +0200 |
| commit | 8055b1c00a102f5419e40f5eddfb6ee8be693f33 (patch) | |
| tree | 9ecff130439a14df47b3718dce21776395f91172 /hyprpm/src/core/PluginManager.cpp | |
| parent | 5de273a14427cb4a4cad9ac57a22b418bcd4248d (diff) | |
misc: Fix build warnings (#6486)
Diffstat (limited to 'hyprpm/src/core/PluginManager.cpp')
| -rw-r--r-- | hyprpm/src/core/PluginManager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hyprpm/src/core/PluginManager.cpp b/hyprpm/src/core/PluginManager.cpp index f9e9664a..e8c6e251 100644 --- a/hyprpm/src/core/PluginManager.cpp +++ b/hyprpm/src/core/PluginManager.cpp @@ -24,9 +24,10 @@ using namespace Hyprutils::String; static std::string execAndGet(std::string cmd) { cmd += " 2>&1"; - std::array<char, 128> buffer; - std::string result; - const std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd.c_str(), "r"), pclose); + std::array<char, 128> buffer; + std::string result; + using PcloseType = int (*)(FILE*); + const std::unique_ptr<FILE, PcloseType> pipe(popen(cmd.c_str(), "r"), static_cast<PcloseType>(pclose)); if (!pipe) return ""; |
