Fixes for "warning: value computed is not used" errors