summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-20 10:35:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-20 13:18:51 +0200
commit991034aad06e7d2b6e8e00b7ccdd8f286b776da3 (patch)
treefff1fc1de82376b3fd6aa2daed36b71cd217513f /sal
parente79d4129dc2ecbd7f1ce75eb36f743621a0480a6 (diff)
coverity#1419948 silence Operands don't affect result
Change-Id: I68c42f6d9c6cfda90446a07ecd6bbf02abb22af9 Reviewed-on: https://gerrit.libreoffice.org/43593 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/file.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 1a3259c654e7..d2bfc34ee3a5 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -1147,7 +1147,7 @@ oslFileError SAL_CALL osl_syncFile(oslFileHandle Handle)
const off_t MAX_OFF_T = std::numeric_limits< off_t >::max();
namespace {
-
+//coverity[result_independent_of_operands]
template<typename T> bool exceedsOffT(T n) { return n > MAX_OFF_T; }
}