summaryrefslogtreecommitdiff
path: root/methods/ftp.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2023-01-29 13:54:02 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2023-01-29 13:59:30 +0100
commit0ac3afe29cfc71c657853f06961c6c8ba9c09e5c (patch)
tree9324f1de8fdcddb0377f41937a206aa9208a023a /methods/ftp.cc
parent3c9ff866affaae10303de04f647220a16bf7e27a (diff)
Ignore return of .c_str() in preemptive call for signal handler
Reported-By: gcc-13 -Wunused-result Gbp-Dch: Ignore
Diffstat (limited to 'methods/ftp.cc')
-rw-r--r--methods/ftp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc
index 16236232a..aa0c0692c 100644
--- a/methods/ftp.cc
+++ b/methods/ftp.cc
@@ -1115,7 +1115,7 @@ bool FtpMethod::Fetch(FetchItem *Itm)
URIStart(Res);
FailFile = Itm->DestFile;
- FailFile.c_str(); // Make sure we don't do a malloc in the signal handler
+ (void)(FailFile.c_str()); // Make sure we don't do a malloc in the signal handler
FailFd = Fd.Fd();
bool Missing;