nfc-tools / ifdnfc

PC/SC IFD Handler based on libnfc
GNU General Public License v3.0
34 stars 9 forks source link

ifd-nfc.c:528: warning: suggest parentheses around && within || #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make

What is the expected output? What do you see instead?
ifd-nfc.c: In function 'IFDHPowerICC':
ifd-nfc.c:528: warning: suggest parentheses around && within ||

The problematic line is:
  if ((ifdnfc->secure_element_as_card) && (ifdnfc_se_is_available(ifdnfc)) || ifdnfc_target_is_available(ifdnfc)) {

I have no idea where to place the parenthesis since I do not really understand 
ths code.

Original issue reported on code.google.com by ludovic....@gmail.com on 19 Jan 2013 at 4:13

GoogleCodeExporter commented 9 years ago
This issue was closed by revision d11187721143.

Original comment by yob...@gmail.com on 19 Jan 2013 at 11:48