[Spice-devel] [[spice-common] 3/4] common: Fix -Wsign-compare
Fabiano Fidêncio
fidencio at redhat.com
Mon Sep 1 06:45:22 PDT 2014
---
common/log.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/log.c b/common/log.c
index 5e2db4c..fc5c129 100644
--- a/common/log.c
+++ b/common/log.c
@@ -84,7 +84,7 @@ void spice_logv(const char *log_domain,
abort_level = getenv("SPICE_ABORT_LEVEL") ? atoi(getenv("SPICE_ABORT_LEVEL")) : SPICE_ABORT_LEVEL_DEFAULT;
}
- if (debug_level < log_level)
+ if (debug_level < (int) log_level)
return;
fprintf(stderr, "(%s:%d): ", getenv("_"), getpid());
@@ -104,7 +104,7 @@ void spice_logv(const char *log_domain,
fprintf(stderr, "\n");
- if (abort_level != -1 && abort_level >= log_level) {
+ if (abort_level != -1 && abort_level >= (int) log_level) {
spice_backtrace();
abort();
}
--
1.9.3
More information about the Spice-devel
mailing list