zbar: add a patch to wrap logical not operations into parenthesis
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Mon, 25 Jan 2016 12:17:50 +0000 (12:17 +0000)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 26 Jan 2016 20:32:34 +0000 (21:32 +0100)
commit12116d4df39911e771e1012442a9ed39836a8fb1
treec57b48be712d44f910dcbc9d8cdef9255f445c4f
parentc65612fff80f3ae5f9ab0a20a516ce20dd19981d
zbar: add a patch to wrap logical not operations into parenthesis

This fixes build failures like this one:

zbar/decoder/ean.c: In function 'ean_part_end4':
zbar/decoder/ean.c:297:13: error: logical not is only applied to the
left hand side of comparison [-Werror=logical-not-parentheses]
     if(!par == fwd) {

This patch has been sent upstream as a pull request:

  https://github.com/ZBar/ZBar/pull/9

Fixes:

  http://autobuild.buildroot.net/results/299/299dc845af082167085d366b38daf1dfd95d7047/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/zbar/0004-Wrap-logical-not-operations-into-parentheses.patch [new file with mode: 0644]