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
Re: WARNINGS: LOG -> empty statement in RELEASE [message #31843 is a reply to message #31836] Wed, 30 March 2011 21:43 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
dolik.rce wrote on Wed, 30 March 2011 07:14

Hi kohait,

There is lot more warnings like this all over U++ Smile IMHO better solution (more general and future-proof) would be defining LOG as nonempty macro:
#ifndef flagDEBUG
#define LOG(X) {}
#endif 

I don't recall where the LOG is originally defined, but I'm sure you can find it Wink

Honza


Are you sure that GCC guys will not warn about "empty block" someday? Smile
 
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: Wed May 15 08:20:34 CEST 2024

Total time taken to generate the page: 0.02143 seconds