warning fix
format string is not a string literal (potentially insecure) [-Wformat-security]
This commit is contained in:
@@ -47,7 +47,7 @@ main(int /* argc */, char** /* argv */)
|
|||||||
auto hline = "\n------------------------\n";
|
auto hline = "\n------------------------\n";
|
||||||
for (int i = 2; i <= 5; ++i) {
|
for (int i = 2; i <= 5; ++i) {
|
||||||
std::this_thread::sleep_for(500ms);
|
std::this_thread::sleep_for(500ms);
|
||||||
printf(hline);
|
printf("%s", hline);
|
||||||
|
|
||||||
{
|
{
|
||||||
ipc_write_int(client, &i, 1);
|
ipc_write_int(client, &i, 1);
|
||||||
@@ -60,7 +60,7 @@ main(int /* argc */, char** /* argv */)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf(hline);
|
printf("%s", hline);
|
||||||
printf("[c-client] finish the work\n\n");
|
printf("[c-client] finish the work\n\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user