From 5de1d31a75ffc84ad78c24f167184cbd62a306bb Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sun, 31 Jan 2016 23:42:16 -0800 Subject: [PATCH] Change an unconditional #warning to a comment Notes about software design should not be shown as warnings to everybody who compiles the code. Warnings should be about unexpected conditions detected at the compile time. --- sesman/libscp/libscp_v1s.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sesman/libscp/libscp_v1s.c b/sesman/libscp/libscp_v1s.c index 69997ab2..fb137433 100644 --- a/sesman/libscp/libscp_v1s.c +++ b/sesman/libscp/libscp_v1s.c @@ -435,8 +435,11 @@ scp_v1s_list_sessions(struct SCP_CONNECTION *c, int sescnt, struct SCP_DISCONNEC } /* then we wait for client ack */ -#warning maybe this message could say if the session should be resized on -#warning server side or client side + + /* + * Maybe this message could say if the session should be resized on + * server side or client side. + */ init_stream(c->in_s, c->in_s->size); if (0 != scp_tcp_force_recv(c->in_sck, c->in_s->data, 8))