Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
kohait00 is currently offline  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;
 	}
 }

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: svn: patches, sandbox
Next Topic: FEAT: Tcl as a plugin
Goto Forum:
  


Current Time: Mon Apr 29 09:03:12 CEST 2024

Total time taken to generate the page: 0.03666 seconds