summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/empty.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-10-06 14:22:59 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-10-07 21:56:55 +0200
commitb1c14c30ba99ede85e41934b565195b0cbc69703 (patch)
treebf97cb604fc9704f60fcd2f480a9b2420b4ea604 /compilerplugins/clang/empty.cxx
parent0ec6797f8063a1a82dc492840351c3f0f58088a4 (diff)
fix various warnings in compilerplugins
These are triggered when using llvm-config --cxxflags for building, and sometimes there's -Werror. The warnings were mostly unused variables because of being used only in assert(), or default case in switch that covers all enums (it's better to not handle default to get warning if a case is not handled). Change-Id: I0ecdd1f27390aadf033852b0d1ee0ca424ae3c37 Reviewed-on: https://gerrit.libreoffice.org/80317 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'compilerplugins/clang/empty.cxx')
-rw-r--r--compilerplugins/clang/empty.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/empty.cxx b/compilerplugins/clang/empty.cxx
index 6ddbf2a84a2d..108745460d0c 100644
--- a/compilerplugins/clang/empty.cxx
+++ b/compilerplugins/clang/empty.cxx
@@ -35,7 +35,7 @@ BinaryOperatorKind reverse(BinaryOperatorKind op)
case BO_NE:
return op;
default:
- assert(false);
+ abort();
}
}