mirror of https://github.com/ARMmbed/mbed-os.git
One gets this compiler warning from nvstore.cpp: ``` Compile [ 48.6%]: nvstore.cpp [Warning] nvstore.cpp@814,9: variable 'os_ret' set but not used [-Wunused-but-set-variable] ``` Turns out it's caused by the fact that the variable is only used with MBED_ASSERTs, which get optimized out or not, depending on your build profile. In reality we do not need a separate variable for that in my opinion though, so we can just use the ret-variable instead and drop the os_ret variable completely and thus avoid this compiler warning. |
||
---|---|---|
.. | ||
FEATURE_STORAGE | ||
TESTS | ||
blockdevice | ||
filesystem | ||
kvstore | ||
nvstore | ||
system_storage |