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