Re: Re: [Tidy-cvs] tidy/src streamio.c,1.27,1.28
"Arnaud Desitter" <[email protected]>
| Newsgroups | gmane.comp.web.html-tidy.devel |
|---|---|
| Message-ID | <[email protected]> |
----- Original Message ----- From: "Bjoern Hoehrmann" <[email protected]> To: "Arnaud Desitter" <[email protected]> Cc: <[email protected]> Sent: Thursday, March 03, 2005 5:05 PM Subject: Re: [Tidy-dev] Re: [Tidy-cvs] tidy/src streamio.c,1.27,1.28 >* Arnaud Desitter wrote: >>"#pragma unused(xxx)" which causes flood of warnings with gcc. >>Granted, I can filter them out but what a pain. > > Terry added them (applying a third-party patch, iirc) to actually remove > compiler warnings. MSVC++ does not support such a pragma so I've then > added a pragma to disable warnings for `#pragma unused(xxx)`. Sounds > like we should remove them? I suppose we could. gcc has a neater way to deal with the problem: #ifdef __GNUC__ #define ARG_UNUSED __attribute__ ((__unused__)) #else #define ARG_UNUSED #endif and then one can use: void xx(int i ARG_UNUSED){} but then, it is just as easy not too worry about it and disable the warning related to unused argument using a compiler option. Regards, ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click