qemu-e2k/qga
Thomas Huth 37d98abdc7 qga/commands-win32: Fix problem with redundant protype declaration
When compiling QEMU with MSYS2 on Windows, there is currently the
following error:

../qga/commands-win32.c:62:24: error: redundant redeclaration of
 'CM_Get_DevNode_PropertyW' [-Werror=redundant-decls]
   62 | CMAPI CONFIGRET WINAPI CM_Get_DevNode_PropertyW(
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../qga/commands-win32.c:26:
C:/tools/msys64/mingw64/x86_64-w64-mingw32/include/cfgmgr32.h:840:26: note:
 previous declaration of 'CM_Get_DevNode_PropertyW' was here
  840 |   CMAPI CONFIGRET WINAPI CM_Get_DevNode_PropertyW(DEVINST dnDevInst,
   const DEVPROPKEY *PropertyKey, DEVPROPTYPE *PropertyType, PBYTE PropertyBuffer,
   PULONG PropertyBufferSize, ULONG ulFlags);

Seems like this protype is sometimes available in the cfgmgr32.h
header, and sometimes not. Let's silence the compiler warning here
to let the build pass with -Werror, too.

Message-Id: <20200915114757.55635-1-thuth@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2020-09-16 08:41:06 +02:00
..
installer meson: convert qemu-ga 2020-08-21 06:30:12 -04:00
vss-win32 meson: convert dummy Windows qga/qemu-ga target 2020-08-21 06:30:12 -04:00
channel-posix.c
channel-win32.c qga: Fix a memory leak 2020-03-09 13:36:15 +01:00
channel.h
commands-common.h qga: Extract qmp_guest_file_read() to common commands.c 2020-04-15 09:15:53 -05:00
commands-posix.c qga: add command guest-get-devices for reporting VirtIO devices 2020-09-12 20:37:48 -05:00
commands-win32.c qga/commands-win32: Fix problem with redundant protype declaration 2020-09-16 08:41:06 +02:00
commands.c qga: Use qemu_get_host_name() instead of g_get_host_name() 2020-07-13 17:44:58 -05:00
guest-agent-command-state.c
guest-agent-core.h
main.c qga: fix assert regression on guest-shutdown 2020-07-13 17:17:08 -05:00
meson.build meson: install $localstatedir/run for qga 2020-09-01 01:51:52 -04:00
qapi-schema.json qga: add command guest-get-devices for reporting VirtIO devices 2020-09-12 20:37:48 -05:00
service-win32.c
service-win32.h
vss-win32.c
vss-win32.h