Register warning as serialisable