bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc 3.4.4 cast warnings?


From: Oskar Liljeblad
Subject: Re: gcc 3.4.4 cast warnings?
Date: Sat, 30 Jul 2005 10:38:28 +0200
User-agent: Mutt/1.5.9i

On Thursday, July 28, 2005 at 16:55, James Youngman wrote:
> 
> >   char *dir = xmalloc (length + append_dot + 1);
> > or that it warned about it unless you change it to 
> >   char *dir = (char *) xmalloc (length + append_dot + 1);
> [...]
> > Does anyone know more about this?
> 
> My first guess is that the module is wrongly being compiled as C++,
> which does require the cast.

He *was* compiling it using g++. Is there a GNU coding standard
statement for 'void *' casts? If you look in the libc documentation
you'll find casts for malloc in some places, some places not.

Regards,

Oskar Liljeblad (address@hidden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]