From 75661e23f713456b079b64e991151bc6e0a7a836 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 3 Aug 2021 01:06:58 +0300 Subject: [PATCH] kioslave: compiler warning fix Signed-off-by: Ivailo Monev --- kioslave/camera/kio_camera.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kioslave/camera/kio_camera.cpp b/kioslave/camera/kio_camera.cpp index 4d7c9835..0b878391 100644 --- a/kioslave/camera/kio_camera.cpp +++ b/kioslave/camera/kio_camera.cpp @@ -187,7 +187,8 @@ void KameraProtocol::closeCamera(void) } kDebug(7123) << "KameraProtocol::closeCamera at " << getpid(); - if (gpr = gp_camera_exit(m_camera,m_context) != GP_OK) { + gpr = gp_camera_exit(m_camera, m_context); + if (gpr != GP_OK) { kDebug(7123) << "closeCamera failed with " << gp_result_as_string(gpr); } // HACK: gp_camera_exit() in gp 2.0 does not close the port if there @@ -478,7 +479,7 @@ void KameraProtocol::statRegular(const KUrl &xurl) #define GPHOTO_TEXT_FILE(xx) \ if (directory == "/" && file == #xx".txt") { \ CameraText xx; \ - gpr = gp_camera_get_##xx(m_camera, &xx, m_context); \ + gpr = gp_camera_get_##xx(m_camera, &xx, m_context); \ if (gpr != GP_OK) { \ error(KIO::ERR_DOES_NOT_EXIST, xurl.fileName()); \ return; \