From 445b3fbf826dd074b1f2a34cddcd3f126462f0d1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 2 Mar 2015 19:09:25 +0100 Subject: buid: readd -Wparentheses This warning wasn't overly helpful in the past, and warned against perfectly fine code. But at least with recent gcc versions, this is the warning that complains about assignments in if expressions (why???), so we want to enable it. Also change all the code this warning complains about for no reason. --- video/out/bitmap_packer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/bitmap_packer.c') diff --git a/video/out/bitmap_packer.c b/video/out/bitmap_packer.c index 78af8e648c..747693b089 100644 --- a/video/out/bitmap_packer.c +++ b/video/out/bitmap_packer.c @@ -57,7 +57,7 @@ static int size_index(int s) { int n = av_log2_16bit(s); return (n << HEIGHT_SORT_BITS) - + (- 1 - (s << HEIGHT_SORT_BITS >> n) & (1 << HEIGHT_SORT_BITS) - 1); + + ((- 1 - (s << HEIGHT_SORT_BITS >> n)) & ((1 << HEIGHT_SORT_BITS) - 1)); } /* Pack the given rectangles into an area of size w * h. -- cgit v1.2.3