tsee/Sereal — pull request #1 by avar (2012-08-27 17:19:03+00:00)
Title: srl_decoder.c: quiet a warning from clang

Clang assumes that when you have redundant parentheses in an if that
you meant to make it an assignment. Just remove the redundant
parentheses to work around that.

Here's the warning on Clang 3.1-8:

srl_decoder.c:258:25: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if ( (*dec->pos == SRL_HDR_LIST) ) {
~~~~~~~~~~^~~~~~~~~~~~~~~
srl_decoder.c:258:25: note: remove extraneous parentheses around the comparison to silence this warning
if ( (*dec->pos == SRL_HDR_LIST) ) {
~ ^ ~
srl_decoder.c:258:25: note: use '=' to turn this equality comparison into an assignment
if ( (*dec->pos == SRL_HDR_LIST) ) {
^~
=