summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-11-15 09:14:41 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-11-15 12:49:05 +0100
commite21f5796b1d0d34522cef3888a3e5d91b86c2c00 (patch)
tree46a9b7a13f1004f36b94cccd11bb4a4e0979cb01 /compilerplugins
parentb253501b5001c586a7287616b346cffe6fca5654 (diff)
Silence -Werror,-Wsometimes-uninitialized
Change-Id: I491566c9f1fbbaabf9b050150b1567c5354227d0 Reviewed-on: https://gerrit.libreoffice.org/82752 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/consttobool.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/consttobool.cxx b/compilerplugins/clang/consttobool.cxx
index 4bd0d28e9eaa..8f7823aa8816 100644
--- a/compilerplugins/clang/consttobool.cxx
+++ b/compilerplugins/clang/consttobool.cxx
@@ -191,7 +191,7 @@ public:
}
}
bool suggestion;
- bool replacement;
+ bool replacement = {};
if (res.isInt())
{
suggestion = true;