make gcc happy
This commit is contained in:
Родитель
87324abc10
Коммит
386188863a
|
@ -202,9 +202,15 @@ void TestNet(int argc, char* argv[]) {
|
|||
NetInterface* net = NetInterface::Get();
|
||||
net->Init(&argc, argv);
|
||||
|
||||
char* hi1 = "hello, world";
|
||||
char* hi2 = "hello, c++";
|
||||
char* hi3 = "hello, multiverso";
|
||||
const char* chi1 = std::string("hello, world").c_str();
|
||||
const char* chi2 = std::string("hello, c++").c_str();
|
||||
const char* chi3 = std::string("hello, multiverso").c_str();
|
||||
char* hi1 = new char[14];
|
||||
strcpy(hi1, chi1);
|
||||
char* hi2 = new char[12];
|
||||
strcpy(hi2, chi2);
|
||||
char* hi3 = new char[19];
|
||||
strcpy(hi3, chi3);
|
||||
if (net->rank() == 0) {
|
||||
for (int rank = 1; rank < net->size(); ++rank) {
|
||||
MessagePtr msg(new Message());// = std::make_unique<Message>();
|
||||
|
|
Загрузка…
Ссылка в новой задаче