mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
Fix conflicts with glibc globals
When compiling libvirt with GCC 3.4.6 the following warning is being triggered quite a lot: util/memory.h:60: warning: declaration of 'remove' shadows a global declaration /usr/include/stdio.h:175: warning: shadowed declaration is here Fix this by renaming the parameter to 'toremove'.
This commit is contained in:
parent
3028f51c38
commit
de53effecc
1
AUTHORS
1
AUTHORS
@ -148,6 +148,7 @@ Patches have also been contributed by:
|
||||
Juerg Haefliger <juerg.haefliger@hp.com>
|
||||
Matthias Dahl <mdvirt@designassembly.de>
|
||||
Niels de Vos <ndevos@redhat.com>
|
||||
Davidlohr Bueso <dave@gnu.org>
|
||||
|
||||
[....send patches to get your name here....]
|
||||
|
||||
|
@ -57,7 +57,7 @@ int virExpandN(void *ptrptr, size_t size, size_t *count, size_t add)
|
||||
int virResizeN(void *ptrptr, size_t size, size_t *alloc, size_t count,
|
||||
size_t desired)
|
||||
ATTRIBUTE_RETURN_CHECK ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3);
|
||||
void virShrinkN(void *ptrptr, size_t size, size_t *count, size_t remove)
|
||||
void virShrinkN(void *ptrptr, size_t size, size_t *count, size_t toremove)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3);
|
||||
int virAllocVar(void *ptrptr,
|
||||
size_t struct_size,
|
||||
|
Loading…
x
Reference in New Issue
Block a user