From: Joel Stanley Date: Thu, 14 Aug 2014 03:37:53 +0000 (+1000) Subject: endian: Wrap arguments in braces to silence warnings X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=6b8e498bd74a39afd2da684b93bbba783aa11b18;hp=6b8e498bd74a39afd2da684b93bbba783aa11b18 endian: Wrap arguments in braces to silence warnings When using the endian swapping marcos with multiple arguments that are or'd together: CPU_TO_BE64(THIS_THING | THAT_THING) gcc will emit this warning: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses] Wrap the arugments in braces to avoid this. Signed-off-by: Joel Stanley Signed-off-by: Rusty Russell ---