lpm: fix build with gcc -O0 option