-Werror=return-type
Change-Id: I44e627fa9de9c48a534cbc9ade6cc9d567553709
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <cstdlib>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
#include "compat.hxx"
|
#include "compat.hxx"
|
||||||
@@ -17,9 +18,6 @@ namespace {
|
|||||||
|
|
||||||
char const * kindName(Expr::NullPointerConstantKind kind) {
|
char const * kindName(Expr::NullPointerConstantKind kind) {
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
case Expr::NPCK_NotNull:
|
|
||||||
assert(false); // cannot happen
|
|
||||||
// fall through
|
|
||||||
case Expr::NPCK_ZeroExpression:
|
case Expr::NPCK_ZeroExpression:
|
||||||
return "ZeroExpression";
|
return "ZeroExpression";
|
||||||
case Expr::NPCK_ZeroLiteral:
|
case Expr::NPCK_ZeroLiteral:
|
||||||
@@ -28,6 +26,11 @@ char const * kindName(Expr::NullPointerConstantKind kind) {
|
|||||||
return "CXX11_nullptr";
|
return "CXX11_nullptr";
|
||||||
case Expr::NPCK_GNUNull:
|
case Expr::NPCK_GNUNull:
|
||||||
return "GNUNull";
|
return "GNUNull";
|
||||||
|
case Expr::NPCK_NotNull:
|
||||||
|
assert(false); // cannot happen
|
||||||
|
// fall through
|
||||||
|
default:
|
||||||
|
std::abort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user