Article View: fr.comp.lang.c
Article #15365Re: Eviter un warning
From: Emmanuel Delahaye
Date: Fri, 30 Sep 2005 14:08
Date: Fri, 30 Sep 2005 14:08
29 lines
1872 bytes
1872 bytes
Harpo wrote on 29/09/05 : > Anthony Fleury wrote: > >> En plus des solutions donn�es par les deux autres contributeurs, j'ai >> la solution GCC : utiliser -Wno-unused. > > C'est une bonne solution, j'ai GCC 3.3.6 je crois, mais cette option > marche bien que la doc que j'ai ne l'indique pas. > > Mon coeur balance entre cette solution et celle qu'a donn� Jean-Marc, > les 2 solutions ont leurs qualit�s et leurs petits d�fauts. > Je vais y r�fl�chir. Ca va �tre tr�s utile pour Borland C... Il y a une solution portable et connue : (void) le_parmetre_non_utilise; C'est trop simple ou quoi ? -- Emmanuel The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html The C-library: http://www.dinkumware.com/refxc.html I once asked an expert COBOL programmer, how to declare local variables in COBOL, the reply was: "what is a local variable?"
Technical Details
Message-ID:
<mn.f3c87d595a7c9d94.15512@YOURBRAnoos.fr>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!fr.ip.ndsoftware.net!proxad.net!infeed-3.proxad.net!news18-e.free.fr!not-for-mailReferences:
<433b8a93$0$17226$8fcfb975@news.wanadoo.fr> <433baf52$0$22425$626a14ce@news.free.fr> <433c4f09$0$17214$8fcfb975@news.wanadoo.fr>Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,79548392e83a3222 X-Google-Attributes: gidf9822,public X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!fr.ip.ndsoftware.net!proxad.net!infeed-3.proxad.net!news18-e.free.fr!not-for-mail Subject: Re: Eviter un warning From: "Emmanuel Delahaye" <emdel@YOURBRAnoos.fr> References: <433b8a93$0$17226$8fcfb975@news.wanadoo.fr> <433baf52$0$22425$626a14ce@news.free.fr> <433c4f09$0$17214$8fcfb975@news.wanadoo.fr> Newsgroups: fr.comp.lang.c Message-ID: <mn.f3c87d595a7c9d94.15512@YOURBRAnoos.fr> X-Newsreader: MesNews/1.04.00.00-fr Date: Fri, 30 Sep 2005 16:08:40 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit Lines: 31 Organization: Guest of ProXad - France NNTP-Posting-Date: 30 Sep 2005 16:08:40 MEST NNTP-Posting-Host: 81.65.109.78 X-Trace: 1128089320 news18-e.free.fr 4356 81.65.109.78:13430 X-Complaints-To: abuse@proxad.net