]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
poll builder: add dummy field
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 25 Apr 2025 05:51:53 +0000 (07:51 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 28 Apr 2025 15:18:27 +0000 (17:18 +0200)
The microsoft compiler does not like the empty struct,
so go add a dummy field instead.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27494)

ssl/rio/poll_builder.h

index 985e4713b29d775931249d8c874f0857e0280460..0a03f89df74d370ffa03578279c44f285bd816b3 100644 (file)
@@ -24,7 +24,7 @@
  */
 typedef struct rio_poll_builder_st {
 # if RIO_POLL_METHOD == RIO_POLL_METHOD_NONE
-    /* nothing */;
+    int             unused_dummy; /* make microsoft compiler happy */
 # elif RIO_POLL_METHOD == RIO_POLL_METHOD_SELECT
     fd_set          rfd, wfd, efd;
     int             hwm_fd;