build: fix gcc warnings

This commit is contained in:
jeefo 2024-02-01 14:28:15 +03:00
commit bc2b19ab70
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
2 changed files with 6 additions and 1 deletions

@ -1 +1 @@
Subproject commit 5225f857c44ced8e61e65b25892a0c8ab015250c
Subproject commit f20b3301c67b61f7dba30aa8b5de4e1a31d67f4b

View file

@ -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 ())) {