iceman1001 / proxmark3

[Deprecated] Iceman Fork, the most totally wicked fork around if you are into proxmark3
http://www.icedev.se/pm3.aspx
GNU General Public License v2.0
465 stars 116 forks source link

Enclosed naked statements with braces to avoid C compliler misleading-indentation 'guard' warning. #135

Closed winguru closed 6 years ago

winguru commented 6 years ago

Getting the following error message when compiling:

felica.c: In function 'sendNFCToFPGA':
felica.c:398:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
   if (AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_RXRDY))
   ^~
felica.c:399:45: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    b = (uint16_t)(AT91C_BASE_SSC->SSC_RHR); (void)b;
                                             ^
felica.c:407:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
   if (AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_RXRDY))
   ^~
felica.c:408:45: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    b = (uint16_t)(AT91C_BASE_SSC->SSC_RHR); (void)b;
                                             ^
felica.c: In function 'HfDumpFelicaLiteS':
felica.c:592:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
     if(!manch_tbl_fill)
     ^~
felica.c:595:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  ResetNFCFrame();
  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
../common/Makefile.common:88: recipe for target 'obj/felica.o' failed
iceman1001 commented 6 years ago

Perfect! Thank you.