Make sure that the lambda capture parameter is actually used when
sendfile(2) is not usable, to avoid a fatal warning: FreeBSD is both
super advanced (with clang being very uptodate) and somewhat
prehistorical.
And no, I do not plan to deal myself with the FreeBSD-specific
sendfile prototype to avoid this problem in a cleaner way. But patches
are welcome as usual.
#if HAVE_SENDFILE
sendfile(fdout, fdin, NULL, fdin_size);
#else
+ XBT_WARN("Copy %d bytes into %s", static_cast<int>(fdin_size), target_executable.c_str());
const int bufsize = 1024 * 1024 * 4;
char buf[bufsize];
while (int got = read(fdin, buf, bufsize)) {