ifnet/tests: fix GCC 5 warning about possible misuse of logical not

With GCC 5, -Wlogical-not-parentheses is enabled by -Wall and warns
about suspicious code like:

  int a;
  ...
  if (!a > 1) { ... }

Fix the following warning:

test_all.c: In function ‘test_is_static’:
test_all.c:114:32: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
  ASSERT (!is_static_ip6 ("eth0") == TRUE, "is static",
                                  ^

(cherry picked from commit fe765d30da)
This commit is contained in:
Beniamino Galvani 2015-05-25 16:15:55 +02:00
parent 2b621ef5dd
commit 688183c96c

View file

@ -111,7 +111,7 @@ test_is_static (void)
"a dhcp interface is recognized as static");
ASSERT (is_static_ip4 ("eth0") == TRUE, "is static",
"a static interface is recognized as dhcp");
ASSERT (!is_static_ip6 ("eth0") == TRUE, "is static",
ASSERT (is_static_ip6 ("eth0") == FALSE, "is static",
"a dhcp interface is recognized as static");
}