13
0

fix optimized unused variable warning

This commit is contained in:
Paul Davis 2022-06-21 18:34:28 -06:00
parent fc1a0140a3
commit a78fbf919d

View File

@ -457,7 +457,9 @@ CURLcode res;
DEBUG_TRACE(PBD::DEBUG::Freesound, string_compose("renaming %1.part to %1\n", audioFileName));
int r = rename ( (audioFileName+".part").c_str(), audioFileName.c_str() );
if (r != 0) {
#ifndef NDEBUG
const char *err = strerror(errno);
#endif
DEBUG_TRACE(PBD::DEBUG::Freesound, string_compose("rename() failed: %1\n", err));
assert(0);
} else {