use new macros to cleanup #ifndef NDEBUG as much as possible (GUI edition)
This commit is contained in:
parent
0d9656ef82
commit
22e77130e2
@ -439,8 +439,9 @@ int audioFileWrite(void *buffer, size_t size, size_t nmemb, void *file)
|
|||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
|
|
||||||
void *
|
void *
|
||||||
Mootcher::threadFunc() {
|
Mootcher::threadFunc()
|
||||||
CURLcode res;
|
{
|
||||||
|
CURLcode res;
|
||||||
|
|
||||||
DEBUG_TRACE(PBD::DEBUG::Freesound, "threadFunc\n");
|
DEBUG_TRACE(PBD::DEBUG::Freesound, "threadFunc\n");
|
||||||
res = curl_easy_perform (curl);
|
res = curl_easy_perform (curl);
|
||||||
@ -457,11 +458,9 @@ CURLcode res;
|
|||||||
DEBUG_TRACE(PBD::DEBUG::Freesound, string_compose("renaming %1.part to %1\n", audioFileName));
|
DEBUG_TRACE(PBD::DEBUG::Freesound, string_compose("renaming %1.part to %1\n", audioFileName));
|
||||||
int r = rename ( (audioFileName+".part").c_str(), audioFileName.c_str() );
|
int r = rename ( (audioFileName+".part").c_str(), audioFileName.c_str() );
|
||||||
if (r != 0) {
|
if (r != 0) {
|
||||||
#ifndef NDEBUG
|
const char * err = strerror(errno);
|
||||||
const char *err = strerror(errno);
|
fatal << string_compose (_("programming error: %1\n"), string_compose (X_("freesound rename failed %1"), err));
|
||||||
#endif
|
abort (); /* XXX probably not appropriat */
|
||||||
DEBUG_TRACE(PBD::DEBUG::Freesound, string_compose("rename() failed: %1\n", err));
|
|
||||||
assert(0);
|
|
||||||
} else {
|
} else {
|
||||||
// now download the tags &c.
|
// now download the tags &c.
|
||||||
getSoundResourceFile(ID);
|
getSoundResourceFile(ID);
|
||||||
|
Loading…
Reference in New Issue
Block a user