From 1d0846be2248c1a68cfae4d841f6be58e3dc4e5c Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Mon, 30 Jul 2018 11:15:30 +0100 Subject: [PATCH] build: fix warnings --- menu.h | 1 - test/config/bool.c | 2 +- test/config/long.c | 2 +- test/config/number.c | 2 +- test/config/quad.c | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/menu.h b/menu.h index 2f9fbe507..19769e744 100644 --- a/menu.h +++ b/menu.h @@ -35,7 +35,6 @@ extern bool MenuScroll; /**< scroll menu instead of implicit next-page */ struct ConfigSet; struct HashElem; -enum ConfigEvent; #define REDRAW_INDEX (1 << 0) #define REDRAW_MOTION (1 << 1) diff --git a/test/config/bool.c b/test/config/bool.c index ed051a951..f3207bd97 100644 --- a/test/config/bool.c +++ b/test/config/bool.c @@ -289,7 +289,7 @@ static bool test_native_set(struct ConfigSet *cs, struct Buffer *err) mutt_buffer_reset(err); TEST_MSG("Setting %s to %d\n", name, value); rc = cs_str_native_set(cs, name, value, err); - if (!TEST_CHECK(rc & CSR_SUC_NO_CHANGE) != 0) + if (!TEST_CHECK((rc & CSR_SUC_NO_CHANGE) != 0)) { TEST_MSG("%s\n", err->data); return false; diff --git a/test/config/long.c b/test/config/long.c index a859f18a5..06126346e 100644 --- a/test/config/long.c +++ b/test/config/long.c @@ -290,7 +290,7 @@ static bool test_native_set(struct ConfigSet *cs, struct Buffer *err) short_line(); TEST_MSG("Setting %s to %d\n", name, value); rc = cs_str_native_set(cs, name, value, err); - if (!TEST_CHECK(rc & CSR_SUC_NO_CHANGE) != 0) + if (!TEST_CHECK((rc & CSR_SUC_NO_CHANGE) != 0)) { TEST_MSG("This test should have failed\n"); return false; diff --git a/test/config/number.c b/test/config/number.c index d593f17c7..42c3fa33f 100644 --- a/test/config/number.c +++ b/test/config/number.c @@ -289,7 +289,7 @@ static bool test_native_set(struct ConfigSet *cs, struct Buffer *err) short_line(); TEST_MSG("Setting %s to %d\n", name, value); rc = cs_str_native_set(cs, name, value, err); - if (!TEST_CHECK(rc & CSR_SUC_NO_CHANGE) != 0) + if (!TEST_CHECK((rc & CSR_SUC_NO_CHANGE) != 0)) { TEST_MSG("This test should have failed\n"); return false; diff --git a/test/config/quad.c b/test/config/quad.c index 3f6a41e37..51e74566e 100644 --- a/test/config/quad.c +++ b/test/config/quad.c @@ -296,7 +296,7 @@ static bool test_native_set(struct ConfigSet *cs, struct Buffer *err) mutt_buffer_reset(err); TEST_MSG("Setting %s to %d\n", name, value); rc = cs_str_native_set(cs, name, value, err); - if (!TEST_CHECK(rc & CSR_SUC_NO_CHANGE) != 0) + if (!TEST_CHECK((rc & CSR_SUC_NO_CHANGE) != 0)) { TEST_MSG("%s\n", err->data); return false; -- 2.50.1