named-data-iot / ndn-riot

NDN stack module for RIOT-OS
8 stars 8 forks source link

pit: use unused variable r #2

Closed cgundogan closed 8 years ago

cgundogan commented 8 years ago

When compiling with -Werror=unused-variable (like it's the case for RIOT), then the compiler fails, because r is not used (assuming asserts are not compiled).

The (unnecessary) cast to void satisfies the compiler.

cgundogan commented 8 years ago

can be observed in https://github.com/RIOT-OS/RIOT/pull/5914

OlegHahm commented 8 years ago

:+1: for merging this, in order to proceed with RIOT-OS/RIOT#5914

OlegHahm commented 8 years ago

That was fast. :smile:

wentaoshang commented 8 years ago

Sorry for the delay. Just got the write access to this repo a minute ago :)