summaryrefslogtreecommitdiff
path: root/stats_prefix.c
Commit message (Collapse)AuthorAgeFilesLines
* stats_prefix.c: Check for NDEBUG before using total_written variableKhem Raj2021-07-251-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.cKanak Kshetri2020-01-131-0/+167