Quash compile warning "warning: 'flags' may be used uninitialized in this function"