diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-24 09:39:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-24 09:42:21 +0100 |
commit | 351202fd9bff1a9cf5b82d6aef5df14a4222a5e9 (patch) | |
tree | e4de990f386ea5b4b2cdf06b8c10a82b5b09a31d | |
parent | fcefc0d4aba8a7001f07a18e044776dc9dc4bb5e (diff) |
coverity#1242860 Unused value + loplugin:casttovoid
Change-Id: I80725fbde6fbf29d47f0b462ff22e6be4fbebaca
-rw-r--r-- | extensions/source/scanner/sane.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/extensions/source/scanner/sane.cxx b/extensions/source/scanner/sane.cxx index 006b4c6c59a7..976d76aefbe3 100644 --- a/extensions/source/scanner/sane.cxx +++ b/extensions/source/scanner/sane.cxx @@ -666,9 +666,12 @@ bool Sane::Start( BitmapTransporter& rBitmap ) if( nStatus != SANE_STATUS_GOOD ) { bSynchronousRead = false; - nStatus = p_set_io_mode(maHandle, SANE_TRUE); (void)nStatus; + nStatus = p_set_io_mode(maHandle, SANE_TRUE); CheckConsistency( "sane_set_io_mode" ); - SAL_WARN_IF(nStatus != SANE_STATUS_GOOD, "extensions.scanner", "driver is confused" ); + if (nStatus != SANE_STATUS_GOOD) + { + SAL_WARN("extensions.scanner", "SANE driver status is: " << nStatus); + } } SANE_Int nLen=0; |