fix(kernel/level): warning messages when compiling in release mode

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>