Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | stats_prefix.c: Check for NDEBUG before using total_written variable | Khem Raj | 2021-07-25 | 1 | -2/+6 |
| | | | | | | | | | | | | | When using NDEBUG assert macro is ineffective which is caught by latest clang and reports that total_written is set but unused. Therefore check for NDEBUG to make sure assert is used only when its effective Fixes error: variable 'total_written' set but not used [-Werror,-Wunused-but-set-variable] size_t size = 0, written = 0, total_written = 0; ^ Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||||
* | stats: Rename stats.c to stats_prefix.c | Kanak Kshetri | 2020-01-13 | 1 | -0/+167 |