aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-08-25 10:05:18 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-08-25 10:06:00 +0200
commit2493e962fe9c580a8690e03b1e1635bd9f6c961a (patch)
tree40c31b9d6085fce45f15674ab4bb4df4fa8b29ab /include
parenta9846ccc0d559af3db6dba07f2183219c846b617 (diff)
downloadlibssh-2493e962fe9c580a8690e03b1e1635bd9f6c961a.tar.gz
libssh-2493e962fe9c580a8690e03b1e1635bd9f6c961a.tar.xz
libssh-2493e962fe9c580a8690e03b1e1635bd9f6c961a.zip
packet: Fix fallthrough compiler warnings
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/priv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index d31992d4..8e6a8e62 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -383,6 +383,14 @@ int ssh_connector_remove_event(ssh_connector connector);
# endif
#endif
+#ifndef FALL_THROUGH
+# ifdef HAVE_FALLTHROUGH_ATTRIBUTE
+# define FALL_THROUGH __attribute__ ((fallthrough))
+# else /* HAVE_FALLTHROUGH_ATTRIBUTE */
+# define FALL_THROUGH
+# endif /* HAVE_FALLTHROUGH_ATTRIBUTE */
+#endif /* FALL_THROUGH */
+
void ssh_agent_state_free(void *data);
#endif /* _LIBSSH_PRIV_H */