dlbeer / mspdebug

Debugging tool for MSP430 MCUs
GNU General Public License v2.0
187 stars 80 forks source link

drivers/jtdev_bus_pirate: Fix GCC 7 misleading indent warning #45

Closed bradfa closed 6 years ago

bradfa commented 6 years ago

Indent the jtbp_close() function consistently with tabs in order to fix for GCC 7's flagging of this warning:

drivers/jtdev_bus_pirate.c: In function ‘jtbp_close’: drivers/jtdev_bus_pirate.c:189:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if(write(p->port, &out_buff, 1)); ^~ drivers/jtdev_bus_pirate.c:191:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ close(p->port); ^~~~~

Signed-off-by: Andrew Bradford andrew@bradfordembedded.com

dlbeer commented 6 years ago

Thanks!