summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/pipeline.cpp2
-rw-r--r--tests/hawd/state.cpp2
2 files changed, 3 insertions, 1 deletions
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<qint64> Pipeline::modifiedEntity(void const *command, size_t size)
283 case Preprocessor::DropModification: 283 case Preprocessor::DropModification:
284 SinkTraceCtx(d->logCtx) << "Dropping modification"; 284 SinkTraceCtx(d->logCtx) << "Dropping modification";
285 return KAsync::error<qint64>(0); 285 return KAsync::error<qint64>(0);
286 case Preprocessor::NoAction:
287 case Preprocessor::DeleteEntity:
286 default: 288 default:
287 break; 289 break;
288 } 290 }
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()
117{ 117{
118#ifdef HAVE_LIBGIT2 118#ifdef HAVE_LIBGIT2
119 git_libgit2_init(); 119 git_libgit2_init();
120 git_buf root = {0}; 120 git_buf root;
121 int error = git_repository_discover(&root, projectPath().toStdString().data(), 0, NULL); 121 int error = git_repository_discover(&root, projectPath().toStdString().data(), 0, NULL);
122 if (!error) { 122 if (!error) {
123 git_repository *repo = NULL; 123 git_repository *repo = NULL;