ros::init(argc, argv, "my_node_name", ros::init_options::AnonymousName + ros::init_options::NoSigintHandler);

init_options are bit flags, so you can just add them up.