Topic: Warning when building WolfSSH

wolfssh_server.c:115:12: warning: 'ssh_worker' defined but not used [-Wunused-function]
115 static int ssh_worker(thread_ctx_t* threadCtx) {
^~~~~~~~~~

I can find no use of this routine in the code.  Can you please comment as to whether this routine can be removed from the file?

Share

Re: Warning when building WolfSSH

How are you configuring wolfSSH? Which version are you trying to build? The function ssh_worker() should be called by the server_worker() thread entry point.

Re: Warning when building WolfSSH

Thank you, John.  I am building this for Nucleus.  It is version 1.4.5.  After diffing the original code with our changes, it looks like we have changed this file significantly in porting and have probably triggered the warning. I'll let you know if there is still a problem after I investigate further.  Thanks!

Share