Skip to content
Commit c973cfaa authored by Jurica Vukadin's avatar Jurica Vukadin
Browse files

sftp: Fix build failure with old libssh versions

Building kio-sftp fails on Ubuntu 18.04:
kio-extras/sftp/kio_sftp.cpp:1280:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]
}
^
1 error generated.
make[2]: *** [sftp/CMakeFiles/kio_sftp.dir/kio_sftp.cpp.o] Error 1
make[1]: *** [sftp/CMakeFiles/kio_sftp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2

SFTPInternal::openConnection() version for libssh < 0.8.3 is missing a
return at the end of the function. Add it.
parent be979be8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment