From 0ac3afe29cfc71c657853f06961c6c8ba9c09e5c Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 29 Jan 2023 13:54:02 +0100 Subject: Ignore return of .c_str() in preemptive call for signal handler Reported-By: gcc-13 -Wunused-result Gbp-Dch: Ignore --- methods/ftp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'methods/ftp.cc') 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; -- cgit v1.2.3-70-g09d2