[[spice-common] 3/4] common: Fix -Wsign-compare

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]