aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2023-07-28 16:27:45 +0200
committerThomas Huth <thuth@redhat.com>2023-08-03 13:04:35 +0200
commitc5b5288c3da9c7728b2d10b577bc31beb231fb8a (patch)
tree24c8675d62d73ca4990f62ac68222384bcd4be84 /util
parentfb695ae3fdfe34ce7bf2eaa4595d48ca809c8841 (diff)
util/oslib-win32: Fix compiling with Clang from MSYS2
Clang complains: ../util/oslib-win32.c:483:56: error: omitting the parameter name in a function definition is a C2x extension [-Werror,-Wc2x-extensions] win32_close_exception_handler(struct _EXCEPTION_RECORD*, ^ Fix it by adding parameter names. Message-Id: <20230728142748.305341-4-thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/oslib-win32.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/oslib-win32.c b/util/oslib-win32.c
index 429542face..19a0ea7fbe 100644
--- a/util/oslib-win32.c
+++ b/util/oslib-win32.c
@@ -480,8 +480,9 @@ int qemu_bind_wrap(int sockfd, const struct sockaddr *addr,
}
EXCEPTION_DISPOSITION
-win32_close_exception_handler(struct _EXCEPTION_RECORD*,
- void*, struct _CONTEXT*, void*)
+win32_close_exception_handler(struct _EXCEPTION_RECORD *exception_record,
+ void *registration, struct _CONTEXT *context,
+ void *dispatcher)
{
return EXCEPTION_EXECUTE_HANDLER;
}