From 0c1ec3aa94732738690756b5a122a75f47706ff2 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sun, 31 May 2015 00:42:31 -0400 Subject: Fix extraneous parentheses warning. This warning indicates maybe we wanted to use assignment and added the extra parentheses to silence that *other* warning about assignment in a conditional. However, we really want a conditional, and the parentheses are due to it being in a macro, so using a yoda conditional avoids the ambiguity and silences the warning. --- src/pj_gridinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pj_gridinfo.c b/src/pj_gridinfo.c index e6b0e8f9..3d34dd7e 100644 --- a/src/pj_gridinfo.c +++ b/src/pj_gridinfo.c @@ -50,7 +50,7 @@ /************************************************************************/ static int byte_order_test = 1; -#define IS_LSB (((unsigned char *) (&byte_order_test))[0] == 1) +#define IS_LSB (1 == ((unsigned char *) (&byte_order_test))[0]) static void swap_words( unsigned char *data, int word_size, int word_count ) -- cgit v1.2.3