From mint-bounce@lists.fishpool.fi Sun Jan 10 12:25:22 2010 Message-ID: <4B4A0CE7.9070509@freesbee.fr> Date: Sun, 10 Jan 2010 18:22:47 +0100 From: =?ISO-8859-15?Q?Vincent_Rivi=E8re?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: mint@lists.fishpool.fi Subject: Re: [MiNT] patch:XaAES:taskman References: <882996.639094444-sendEmail@descaro> <4B48F58F.3020804@freesbee.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed X-Antivirus: avast! (VPS 100110-0, 10/01/2010), Outbound message X-Antivirus-Status: Clean X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id o0AHPLBp011757 Helmut Karlowski wrote: >> t.text is char* >> title is const char * >> >> So the obvious fix is: >> t.text = (char*)title; >> >> Your patch is correct, but unnecessary complex. > > If I recall right, gcc 2.95 didn't want this. > > ../taskman.c:393: warning: cast discards qualifiers from pointer target > type Oh, you are right. It is because the kernel is compiled with the unusual -Wcast-qual option. It is usually not turned on, even with -Wall. -- Vincent Rivière