opt: fix warnings with gcc and -O.