[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cygwin] cwrapper emits wrapper script
From: |
Ralf Wildenhues |
Subject: |
Re: [cygwin] cwrapper emits wrapper script |
Date: |
Tue, 24 Apr 2007 22:52:22 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
* Ralf Wildenhues wrote on Tue, Apr 24, 2007 at 08:53:46AM CEST:
> * Charles Wilson wrote on Tue, Apr 24, 2007 at 04:34:41AM CEST:
> > Ralf Wildenhues wrote:
>
> >>> for (i=0; i<argc+1; i++)
> >>> {
> >>> - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
> >>> + LTWRAPPER_DEBUGPRINTF("(main) newargz[%d] : %s\n",i,newargz[i]);
> >>> ;
> >> What's that extra ; for BTW?
> >
> > If !DEBUGWRAPPER, then LTWRAPPER_DEBUGPRINTF() goes away completely, and
> > gcc complains about the empty body in the for loop.
>
> D'oh. Thanks.
No, wrong. If LTWRAPPER_DEBUGPRINTF goes away, then the semicolon at
the end of the LTWRAPPER_DEBUGPRINTF line remains. I don't see how
there can be a warning with one but no warning with two semicolons.
FWIW, my GCC 4.0.3 doesn't warn at all (with -O2 -W -Wall).
Cheers,
Ralf
- [cygwin] cwrapper emits wrapper script, Charles Wilson, 2007/04/20
- Re: [cygwin] cwrapper emits wrapper script, Ralf Wildenhues, 2007/04/23
- Re: [cygwin] cwrapper emits wrapper script, Charles Wilson, 2007/04/23
- Re: [cygwin] cwrapper emits wrapper script, Charles Wilson, 2007/04/24
- Re: [cygwin] cwrapper emits wrapper script, Ralf Wildenhues, 2007/04/25
- Re: [cygwin] cwrapper emits wrapper script, libtool, 2007/04/25
- Re: [cygwin] cwrapper emits wrapper script, Ralf Wildenhues, 2007/04/26
Re: [cygwin] cwrapper emits wrapper script, Charles Wilson, 2007/04/27