]> granicus.if.org Git - neomutt/commitdiff
build: fix warnings
authorRichard Russon <rich@flatcap.org>
Mon, 30 Jul 2018 10:15:30 +0000 (11:15 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 30 Jul 2018 10:15:30 +0000 (11:15 +0100)
menu.h
test/config/bool.c
test/config/long.c
test/config/number.c
test/config/quad.c

diff --git a/menu.h b/menu.h
index 2f9fbe5076ece7a26f885750326163f21a0508e2..19769e744e165f423aacc3b8ccb1e97da8790ea2 100644 (file)
--- 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)
index ed051a9515cce331d25bbd50f71d8040aa2fa634..f3207bd97fc5653deb78a50f08d0f055f39bad58 100644 (file)
@@ -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;
index a859f18a505c15da68cdd1e0fb26ec7dc1dd3551..06126346e6efece74efca18d9b74d80919b7f5ec 100644 (file)
@@ -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;
index d593f17c71563208d2a9e6c26f42d196bda73294..42c3fa33fc096948c662319f11648dbbf501570c 100644 (file)
@@ -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;
index 3f6a41e37a05972bfdb5c84f2d39c7cf48011e3b..51e74566e5b5f2ed5acb62c0c1bacfe471eaae60 100644 (file)
@@ -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;