[YARP_OS] Use initialization list