libxl: Enable -Wshadow.
authorIan Campbell <Ian.Campbell@citrix.com>
Mon, 17 Sep 2012 10:17:00 +0000 (11:17 +0100)
committerIan Campbell <Ian.Campbell@citrix.com>
Mon, 17 Sep 2012 10:17:00 +0000 (11:17 +0100)
commit4de237a42e0b79c87aeaf37792be6458b5437f7b
tree0f1b0d38881aee575bdcd3ee65a0ebe500db5f81
parent5e61076e8f6e48856dacbd65499d6cb69d31976b
libxl: Enable -Wshadow.

It was convenient to invent $(CFLAGS_LIBXL) to do this.

Various renamings to avoid shadowing standard functions:
  - index(3)
  - listen(2)
  - link(2)
  - abort(3)
  - abs(3)

Reduced the scope of some variables to avoid conflicts.

Change to libxc is due to the nested hypercall buf macros in
set_xen_guest_handle (used in libxl) using the same local private vars.

Build tested only.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xenctrl.h
tools/libxl/Makefile
tools/libxl/flexarray.c
tools/libxl/libxl.c
tools/libxl/libxl_dm.c
tools/libxl/libxl_event.c
tools/libxl/libxl_exec.c
tools/libxl/libxl_json.c
tools/libxl/libxl_pci.c
tools/libxl/libxl_qmp.c