littlekernel / lk

LK embedded kernel
MIT License
3.15k stars 621 forks source link

[spifs] Fix warning with GCC 5.3.1 #138

Closed sgjesse closed 8 years ago

sgjesse commented 8 years ago

With GCC 5.3.1 (5-2016-q2-update from https://launchpad.net/gcc-arm-embedded) additional warnings about unused variables cause compilation to fail.

gkalsi commented 8 years ago

One comment, other than that it looks good. Thanks!

nvll commented 8 years ago

The DEBUG_ASSERT itself is wrapped by a check for DEBUGLEVEL >= 1, so that's a bit redundant in the end. Either way.

sgjesse commented 8 years ago

I moved the #endif.