Resolve warnings related to reinitialisation and '|' operator