Mailinglist Archive: opensuse-packaging (109 mails)

< Previous Next >
Re: [opensuse-packaging] Reminder to fix your packages for compiling with GCC 4.3
  • From: Richard Guenther <rguenther@xxxxxxx>
  • Date: Wed, 17 Oct 2007 13:32:17 +0200 (CEST)
  • Message-id: <Pine.LNX.4.64.0710171331390.4202@xxxxxxxxxxxxxx>
On Wed, 17 Oct 2007, Holger Macht wrote:

> On Wed 17. Oct - 13:09:30, Marcus Rueckert wrote:
> > On 2007-10-17 12:56:51 +0200, Holger Macht wrote:
> > > What would result in
> > > 
> > >   char *prop = (char*)"laptop_panel.num_levels";
> > const char *prop = "laptop_panel.num_levels";
> > 
> > should fix it too no?
> 
> Of course it does.
> 
> I also have to change everything like:
> 
>  void testfunc(char *str);
>  testfunc("foo");
> to
>  testfunc((char*)"foo");

No, the correct fix is to make testfunc take a const char *.

> I fully understand that this is correct along with the syntax, but I don't
> like it ;-)

Well, it's only a warning ;)  (for now!)

Richard.

-- 
Richard Guenther <rguenther@xxxxxxx>
Novell / SUSE Labs
SUSE LINUX Products GmbH - Nuernberg - AG Nuernberg - HRB 16746 - GF: Markus Rex
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups