summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-08 23:38:36 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-08 23:38:36 +0200
commit32a2d9b61193db0a3f7ab6f45113c7d3d1ce6a92 (patch)
tree8ee4c117aaeaf30686076dc8006686ebb8f7158d
parenta213eff8a6ec034d01df9a36d8fddae8f2be2ac1 (diff)
downloadsink-32a2d9b61193db0a3f7ab6f45113c7d3d1ce6a92.tar.gz
sink-32a2d9b61193db0a3f7ab6f45113c7d3d1ce6a92.zip
Fixed warnings
-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;