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

Re: [libvirt] [PATCH] util: warn when passing a non-pointer to VIR_FREE



On Fri, Apr 22, 2011 at 08:21:24PM +0200, Christophe Fergeau wrote:
> There were recently some bugs where VIR_FREE was called with an
> int parameter. Try to affect the value passed to VIR_FREE to
> a const void* so that the compiler gets a chance to emit a warning
> if we didn't pass a pointer to VIR_FREE.

With this patch, I don't get any warnings except for the

remote.c: In function ‘remoteDispatchListNetworks’:
remote.c:3517:67: attention : initialization makes pointer from integer
without a cast [enabled by default]

which were just fixed.

Christophe

Attachment: pgpEMNZNoGiLQ.pgp
Description: PGP signature


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