[gnome-builder] pipeline: fix various -Wsign-compare warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] pipeline: fix various -Wsign-compare warnings
- Date: Tue, 28 Feb 2017 20:25:59 +0000 (UTC)
commit 16a1da266ad4794aec377e894b21174724c41cd6
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 28 12:25:47 2017 -0800
pipeline: fix various -Wsign-compare warnings
libide/buildsystem/ide-build-pipeline.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libide/buildsystem/ide-build-pipeline.c b/libide/buildsystem/ide-build-pipeline.c
index 4549bd3..5d74d54 100644
--- a/libide/buildsystem/ide-build-pipeline.c
+++ b/libide/buildsystem/ide-build-pipeline.c
@@ -569,7 +569,7 @@ ide_build_pipeline_get_phase (IdeBuildPipeline *self)
return IDE_BUILD_PHASE_NONE;
else if (self->failed)
return IDE_BUILD_PHASE_FAILED;
- else if (self->position < self->pipeline->len)
+ else if ((guint)self->position < self->pipeline->len)
return g_array_index (self->pipeline, PipelineEntry, self->position).phase & IDE_BUILD_PHASE_MASK;
else
return IDE_BUILD_PHASE_FINISHED;
@@ -1168,7 +1168,7 @@ ide_build_pipeline_tick_execute (IdeBuildPipeline *self,
* will handle all of that for us, in cause they call ide_build_stage_pause()
* during the ::query callback.
*/
- for (self->position++; self->position < self->pipeline->len; self->position++)
+ for (self->position++; (guint)self->position < self->pipeline->len; self->position++)
{
const PipelineEntry *entry = &g_array_index (self->pipeline, PipelineEntry, self->position);
@@ -1637,7 +1637,7 @@ ide_build_pipeline_request_phase (IdeBuildPipeline *self,
{
const GFlagsValue *value = &klass->values[i];
- if (phase == value->value)
+ if ((guint)phase == value->value)
{
IDE_TRACE_MSG ("requesting pipeline phase %s", value->value_nick);
/*
@@ -2329,7 +2329,7 @@ ide_build_pipeline_clean_async (IdeBuildPipeline *self,
if (value->value & phase)
{
- if (value->value < min_phase)
+ if (value->value < (guint)min_phase)
min_phase = value->value;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]