Trying to fix the remaining OSX warnings

This commit is contained in:
Vojtech Bubnik 2021-02-10 19:07:09 +01:00
parent 05a6cfeaea
commit 8049dd1f72
7 changed files with 27 additions and 6 deletions

View file

@ -648,7 +648,12 @@ void FirmwareDialog::priv::perform_upload()
}
}
})
.on_message([extra_verbose, q](const char* msg, unsigned /* size */) {
.on_message([
#ifndef __APPLE__
// clang complains when capturing constants.
extra_verbose,
#endif // __APPLE__
q](const char* msg, unsigned /* size */) {
if (extra_verbose) {
BOOST_LOG_TRIVIAL(debug) << "avrdude: " << msg;
}