Home » Developing U++ » U++ Developers corner » WARNINGS: LOG -> empty statement in RELEASE
WARNINGS: LOG -> empty statement in RELEASE [message #31834] |
Wed, 30 March 2011 11:09 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
hi all, LOG yields some warning in if statements when RELEASE.
change to:
diff --git a/bazaar/Urr/Urr.h b/bazaar/Urr/Urr.h
index 3bec7c3..3ca50ac 100644
--- a/bazaar/Urr/Urr.h
+++ b/bazaar/Urr/Urr.h
@@ -32,7 +32,7 @@ inline int b_sendto(
) {
Sleep(rand() % 10);
int bug = rand() % 10;
- if(bug == 0) LOG("[Emulated drop]");
+ if(bug == 0) { LOG("[Emulated drop]"); }
return bug ? sendto(s, buf, len, flags, to, tolen) : 0;
}
diff --git a/uppsrc/Core/Debug.cpp b/uppsrc/Core/Debug.cpp
index fe4b239..9b469e9 100644
--- a/uppsrc/Core/Debug.cpp
+++ b/uppsrc/Core/Debug.cpp
@@ -230,7 +230,7 @@ void DeleteUsrLog()
}
else {
if(susrlog && !UsrLogStream().Delete())
- LOG("Unable to delete UsrLog, " << GetLastErrorMessage());
+ { LOG("Unable to delete UsrLog, " << GetLastErrorMessage()); }
susrlog = false;
}
}
|
|
|
Goto Forum:
Current Time: Wed May 15 05:07:57 CEST 2024
Total time taken to generate the page: 0.04379 seconds
|