Skip to contentSkip to conversation

lib: fix compilation warning

PATCH Applied David Hildenbrand 3 participants 3 messages May 12, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib: fix compilation warning

GCC doesn't like comparison of signed and unsigned values.

---
 lib/report.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/report.c +1 -1
index aa23b65..f7af596 100644
@@ -29,7 +29,7 @@ void report_pass(void)
 void report_prefix_pushf(const char *prefix_fmt, ...)
 {
 	va_list va;
-	int len;
+	unsigned int len;
 	int start;
 
 	spin_lock(&lock);
Signature · 1 line
2.9.3
Tested-by on v1 1/1
#1 lore raw
Quoted 12 lines · David Hildenbrand

GCC doesn't like comparison of signed and unsigned values.

---
 lib/report.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/report.c +0 -0
index aa23b65..f7af596 100644

lib/report.c void report_pass(void) · line 35

Quoted 8 lines
lib/report.c +1 -1
@@ -29,7 +29,7 @@ void report_pass(void)
 void report_prefix_pushf(const char *prefix_fmt, ...)
 {
 	va_list va;
-	int len;
+	unsigned int len;
 	int start;
 
 	spin_lock(&lock);

This fixes the problem for me, too: