metrics: fix compilation with -Og