]> git.ipfire.org Git - thirdparty/libvirt.git/commit
esx: Fix gcc 4.6 warning about initialized but unused variables
authorMatthias Bolte <matthias.bolte@googlemail.com>
Thu, 14 Apr 2011 17:18:27 +0000 (19:18 +0200)
committerEric Blake <eblake@redhat.com>
Fri, 15 Apr 2011 18:31:38 +0000 (12:31 -0600)
commit1afaafe30739facbc846ffe75aa35c29c1de781c
tree028b71eb4f580bf444b6545906f7652183a4ae03
parentd934bd0a584cd8f6ddfcf63575e63965e9ceb366
esx: Fix gcc 4.6 warning about initialized but unused variables

This warnings come from partly generated code. Therefore, the best
solution is to mark them as potentially being unused using the
ATTRIBUTE_UNUSED macro. This is suggested by the gcc documentation.

Reported by Christophe Fergeau
src/esx/esx_vi.c
src/esx/esx_vi_types.c