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 #31848 is a reply to message #31844] Thu, 31 March 2011 09:29 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 16:18

mirek wrote on Wed, 30 March 2011 21:43

Are you sure that GCC guys will not warn about "empty block" someday? Smile

If they do, we can make it "#define LOG(X) {int i=0;}", so later they can start warning us about "useless code block" Very Happy Then I would really start to consider using -Wno-empty-body (or -Wno-useless-code Smile ).

Honza


This one would yield "unused variable" even today... Smile

I guess the one possible way around would be:

inline void Nop() {}

#define LOG(x) Nop()


Mirek
 
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 02:18:58 CEST 2024

Total time taken to generate the page: 0.02500 seconds