• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: "Statement with no effect" warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: "Statement with no effect" warning


  • Subject: RE: "Statement with no effect" warning
  • From: "Michael Stauffer" <email@hidden>
  • Date: Tue, 26 Jun 2007 12:07:23 -0400
  • Importance: Normal

> -----Original Message-----
> From: glenn andreas [mailto:email@hidden]
> Sent: Friday, June 22, 2007 10:55 AM
> To: Michael Stauffer
> Cc: XCode Apple List
> Subject: Re: "Statement with no effect" warning
...
> If the thing is has a variable number of parameters such as:
>
> void LogDebug(const char *fmt, ...)
>
> you can use the following:
>
> #define LogDebug(...)
>
> to define a pre processor macro that has a variable number of
> parameters (which, in this case, is again swallowed and ignored) -
> see <http://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html>

Thanks Glenn, this is what I've been needing! I wish I'd thought to look for
a var arg list Macro years ago. :)

Cheers,
Michael

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: "Statement with no effect" warning
      • From: Thomas Engelmeier <email@hidden>
References: 
 >Re: "Statement with no effect" warning (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: Getting started
  • Next by Date: Re: xcode and debugging multithreaded applications
  • Previous by thread: Re: "Statement with no effect" warning
  • Next by thread: Re: "Statement with no effect" warning
  • Index(es):
    • Date
    • Thread