代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/deepin-system-monitor 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From cf73455412549e14f1ff8a01925964f1e7896eaf Mon Sep 17 00:00:00 2001
From: weidong <weidong@uniontech.com>
Date: Tue, 3 Aug 2021 19:12:51 +0800
Subject: [PATCH] Fix link failure with gcc-10
---
src/process/desktop_entry_stat.cpp | 2 +-
src/process/process_stat.cpp | 2 +-
src/process/system_stat.cpp | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/process/desktop_entry_stat.cpp b/src/process/desktop_entry_stat.cpp
index d2bedc6..e0a8c9c 100644
--- a/src/process/desktop_entry_stat.cpp
+++ b/src/process/desktop_entry_stat.cpp
@@ -35,7 +35,7 @@ DCORE_USE_NAMESPACE
static const int kUpdateInterval = 1000 * 300; // 5 minutes interval
-auto print_err = [](decltype(errno) e, const QString &msg)
+static void print_err(decltype(errno) e, const QString &msg)
{
qDebug() << QString("Error: [%1] %2, ").arg(e).arg(strerror(e)) << msg;
};
diff --git a/src/process/process_stat.cpp b/src/process/process_stat.cpp
index e68052e..cb161b0 100644
--- a/src/process/process_stat.cpp
+++ b/src/process/process_stat.cpp
@@ -42,7 +42,7 @@
#define PROC_FD_NAME_PATH "/proc/%u/fd/%s"
#define PROC_SCHEDSTAT_PATH "/proc/%u/schedstat"
-auto print_err = [](decltype(errno) e, const QString &msg)
+static void print_err(decltype(errno) e, const QString &msg)
{
qDebug() << QString("Error: [%1] %2, ").arg(e).arg(strerror(e)) << msg;
};
diff --git a/src/process/system_stat.cpp b/src/process/system_stat.cpp
index cc7b359..78060f3 100644
--- a/src/process/system_stat.cpp
+++ b/src/process/system_stat.cpp
@@ -49,7 +49,7 @@
#define MAX_NAME_LEN 128
-auto print_err = [](decltype(errno) e, const QString &msg)
+static void print_err(decltype(errno) e, const QString &msg)
{
qDebug() << QString("Error: [%1] %2, ").arg(e).arg(strerror(e)) << msg;
};
--
2.20.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。