opt: fix gcc -O3 warnings.