From f789251ee495a05068589db15719ce5bd11d27f0 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 25 Oct 2018 18:33:56 +0100 Subject: [PATCH] Fix a couple of benign compile warnings. A function containing assert(FALSE && "Should never be called") doesn't _really_ need to return a value, but it makes compilers happier if it pretends to. --- ssh2connection-client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssh2connection-client.c b/ssh2connection-client.c index 65fc6bc2..dbccf42a 100644 --- a/ssh2connection-client.c +++ b/ssh2connection-client.c @@ -305,11 +305,13 @@ SshChannel *ssh2_serverside_x11_open( ConnectionLayer *cl, Channel *chan, const SocketPeerInfo *pi) { assert(FALSE && "Should never be called in the client"); + return 0; /* placate optimiser */ } SshChannel *ssh2_serverside_agent_open(ConnectionLayer *cl, Channel *chan) { assert(FALSE && "Should never be called in the client"); + return 0; /* placate optimiser */ } static void ssh2_channel_response(