diff options
| author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2014-09-01 15:45:22 +0200 |
|---|---|---|
| committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-09-18 13:15:34 +0200 |
| commit | 6f3918ce7c8aad3c3c7be117db730dcb3eafecda (patch) | |
| tree | 1a1e8a1dc058d6e85f1504841a6fe3aca107dd0f | |
| parent | c8b4c5ec49f4dbf497d9ff92211cfeb9fbd2c4fb (diff) | |
common: Fix -Wsign-compare
| -rw-r--r-- | common/log.c | 4 |
1 files 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(); } |
