aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2015-05-31 00:42:31 -0400
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2015-05-31 00:42:31 -0400
commit0c1ec3aa94732738690756b5a122a75f47706ff2 (patch)
treefca080446098856c2df3fb81b3689d6a31fbdcf2 /src
parent95134a6980aff6e9073ca369c0b131fbfb2fecbf (diff)
downloadPROJ-0c1ec3aa94732738690756b5a122a75f47706ff2.tar.gz
PROJ-0c1ec3aa94732738690756b5a122a75f47706ff2.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/pj_gridinfo.c2
1 files changed, 1 insertions, 1 deletions
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 )