summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-05-22 11:58:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-05-22 14:34:23 +0200
commit4be7c2a2b387f7aca679944728cd268df0907a52 (patch)
treede24a3a48d299e9d152ba36cdc02a017ab744825 /comphelper
parent6245eeeaa10479e1e166cbc65de7152617a2c8e5 (diff)
cid#1504544 deliberately Uninitialized scalar field
Change-Id: Idbc44ac01787f93fa5af1e5358a70590fa4cc64d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134722 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/streaming/memorystream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/streaming/memorystream.cxx b/comphelper/source/streaming/memorystream.cxx
index 2abcb6b1209f..7edfe7a78ce0 100644
--- a/comphelper/source/streaming/memorystream.cxx
+++ b/comphelper/source/streaming/memorystream.cxx
@@ -87,9 +87,9 @@ private:
{
sal_Int8 value;
NoInitInt8() noexcept {
- // do nothing
static_assert(sizeof(NoInitInt8) == sizeof(sal_Int8), "invalid size");
static_assert(alignof(NoInitInt8) == alignof(sal_Int8), "invalid alignment");
+ /* coverity[uninit_member] - deliberately do nothing to leave uninitialized */
}
};