|
Zbigniew Jędrzejewski-Szmek |
399a2a |
From 6af0a4ba45b63072df70ca4d6a8fc5790c66e149 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
From: Daniel Mack <daniel@zonque.org>
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
Date: Tue, 24 Feb 2015 16:24:14 +0100
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
Subject: [PATCH] test-hashmap: fix gcc5 warning
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
MIME-Version: 1.0
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
Content-Type: text/plain; charset=UTF-8
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
Content-Transfer-Encoding: 8bit
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
gcc5 spits out a warning about test-hashmap.c:
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
CC src/test/test-hashmap.o
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
src/test/test-hashmap.c: In function ‘test_string_compare_func’:
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
src/test/test-hashmap.c:76:79: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
(cherry picked from commit 4b3eff61640672bf0b19cb8cdd88ce5e84dcda1c)
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
---
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
src/test/test-hashmap.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
diff --git a/src/test/test-hashmap.c b/src/test/test-hashmap.c
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
index 6900da9e89..351563b967 100644
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
--- a/src/test/test-hashmap.c
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
+++ b/src/test/test-hashmap.c
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
@@ -75,7 +75,7 @@ static void test_trivial_compare_func(void) {
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
}
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
static void test_string_compare_func(void) {
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
- assert_se(!string_compare_func("fred", "wilma") == 0);
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
+ assert_se(string_compare_func("fred", "wilma") != 0);
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
assert_se(string_compare_func("fred", "fred") == 0);
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
}
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|