summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-02-26 13:10:41 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-02-26 14:34:30 +0100
commit8631cecb8631228e02badafb315a5294338c5c0c (patch)
treebf31fc0b4436c4f2c5a694f3844460dfcefd1c54 /compilerplugins
parent34082fa5a8e389d71e099ae5563a6268d401c278 (diff)
-Werror=maybe-uninitialized
Change-Id: Ib456e717b65c3dce3aaca73b2d55872a53d30828
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/override.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/override.cxx b/compilerplugins/clang/override.cxx
index d44af962276c..155f4ceb33d9 100644
--- a/compilerplugins/clang/override.cxx
+++ b/compilerplugins/clang/override.cxx
@@ -87,7 +87,7 @@ bool Override::VisitCXXMethodDecl(CXXMethodDecl const * decl) {
// depend on the following token at the spelling location where
// "SAL_OVERRIDE" is inserted, not on the following token in the fully-
// macro-expanded view:
- bool addSpace;
+ bool addSpace = bool();
SourceLocation loc;
for (SourceLocation l(decl->getSourceRange().getBegin());;) {
SourceLocation sl(compiler.getSourceManager().getSpellingLoc(l));