summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-02-26 13:12:01 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-02-26 14:34:30 +0100
commit2db16f4bdc9f6e4136c20995ab688b75819d8b35 (patch)
tree4cd0a30e7b5eea28b99019a4258bb5b6f53b66fb
parent8631cecb8631228e02badafb315a5294338c5c0c (diff)
-Werror=return-type
Change-Id: I7691fa50d827b688cab299c85c933adabb29994c
-rw-r--r--compilerplugins/clang/stringconstant.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx
index 0749abb3ddd0..456413c6eb99 100644
--- a/compilerplugins/clang/stringconstant.cxx
+++ b/compilerplugins/clang/stringconstant.cxx
@@ -9,6 +9,7 @@
#include <algorithm>
#include <cassert>
+#include <cstdlib>
#include <limits>
#include <stack>
#include <string>
@@ -805,6 +806,8 @@ std::string StringConstant::describeChangeKind(ChangeKind kind) {
return "string constant and matching length arguments";
case ChangeKind::SingleChar:
return "ASCII sal_Unicode argument";
+ default:
+ std::abort();
}
}