From bc2b19ab70f5ff8d749963f09323db7e7e765066 Mon Sep 17 00:00:00 2001 From: jeefo Date: Thu, 1 Feb 2024 14:28:15 +0300 Subject: [PATCH] build: fix gcc warnings --- ext/crlib | 2 +- src/graph.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ext/crlib b/ext/crlib index 5225f85..f20b330 160000 --- a/ext/crlib +++ b/ext/crlib @@ -1 +1 @@ -Subproject commit 5225f857c44ced8e61e65b25892a0c8ab015250c +Subproject commit f20b3301c67b61f7dba30aa8b5de4e1a31d67f4b diff --git a/src/graph.cpp b/src/graph.cpp index 8131a4c..3a12807 100644 --- a/src/graph.cpp +++ b/src/graph.cpp @@ -1313,6 +1313,11 @@ void BotGraph::syncCollectOnline () { } String localFile = plat.tmpfname (); + // no temp file, no fun + if (localFile.empty ()) { + return; + } + // don't forget remove temporary file auto unlinkTemporary = [&] () { if (plat.fileExists (localFile.chars ())) {