From 32a2d9b61193db0a3f7ab6f45113c7d3d1ce6a92 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 8 May 2017 23:38:36 +0200 Subject: Fixed warnings --- common/pipeline.cpp | 2 ++ tests/hawd/state.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/pipeline.cpp b/common/pipeline.cpp index f5cf995..dc6f128 100644 --- a/common/pipeline.cpp +++ b/common/pipeline.cpp @@ -283,6 +283,8 @@ KAsync::Job Pipeline::modifiedEntity(void const *command, size_t size) case Preprocessor::DropModification: SinkTraceCtx(d->logCtx) << "Dropping modification"; return KAsync::error(0); + case Preprocessor::NoAction: + case Preprocessor::DeleteEntity: default: break; } diff --git a/tests/hawd/state.cpp b/tests/hawd/state.cpp index dfeef41..46b5f28 100644 --- a/tests/hawd/state.cpp +++ b/tests/hawd/state.cpp @@ -117,7 +117,7 @@ void State::findGitHash() { #ifdef HAVE_LIBGIT2 git_libgit2_init(); - git_buf root = {0}; + git_buf root; int error = git_repository_discover(&root, projectPath().toStdString().data(), 0, NULL); if (!error) { git_repository *repo = NULL; -- cgit v1.2.3