From 913e69b4c55e6e8eb496013eb5a31ccd0ad68517 Mon Sep 17 00:00:00 2001 From: taynpg Date: Thu, 11 Apr 2024 15:21:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4system=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=80=BC=E6=9C=AA=E4=BD=BF=E7=94=A8=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MainWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MainWidget.cpp b/MainWidget.cpp index 8465cdf..0d42e02 100644 --- a/MainWidget.cpp +++ b/MainWidget.cpp @@ -279,5 +279,6 @@ void MainWidget::generate() } out << run_sh; out.close(); - system(std::string("chmod +x " + out_sh).c_str()); + int r = system(std::string("chmod +x " + out_sh).c_str()); + (void)r; } \ No newline at end of file