From e6a60d53befcd25762e4fb014ccd97edc6e19aeb Mon Sep 17 00:00:00 2001 From: Pavel Kryukov Date: Fri, 1 Jun 2018 19:09:52 +0300 Subject: [PATCH] Add a dummy field to ssh_key structure According to C standard, the behavior is undefined if structure contains no members. --- ssh.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ssh.h b/ssh.h index 7537361e..398f8352 100644 --- a/ssh.h +++ b/ssh.h @@ -75,7 +75,10 @@ void share_setup_x11_channel(void *csv, void *chanv, typedef void *Bignum; #endif -typedef struct ssh_key {} ssh_key; +typedef struct ssh_key { + int dummy; +} ssh_key; + typedef struct ssh_keyalg ssh_keyalg; struct RSAKey {