[libvirt] [PATCH] datatypes.c: Replace 'close' with 'closeData'

Michal Privoznik mprivozn at redhat.com
Wed Mar 2 08:44:56 UTC 2016


On 01.03.2016 17:43, Michal Privoznik wrote:
> Older compilers fail to see that 'close' is not used a function
> rather than a variable and produce the following error:
> 
> cc1: warnings being treated as errors
> ../../src/datatypes.c: In function 'virConnectCloseCallbackDataReset':
> ../../src/datatypes.c:149: error: declaration of 'close' shadows a global declaration [-Wshadow]
> 
> Replace all the 'close' occurrences with 'closeData' to resolve
> this.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/datatypes.c | 72 ++++++++++++++++++++++++++++-----------------------------
>  1 file changed, 36 insertions(+), 36 deletions(-)

Since this qualifies as a build breaker, I've pushed this one.

Michal




More information about the libvir-list mailing list