Removed unused static function in enkf_main, it gave a warning. Removed warning as error exception in cmake file