Skip to content

Commit bd4afa3

Browse files
committed
Fix warnings on GCC7.
1 parent c258a4a commit bd4afa3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Release/samples/Oauth1Client/Oauth1Client.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ static void open_browser(utility::string_t auth_uri)
6464
#elif defined(__APPLE__)
6565
// NOTE: OS X only.
6666
string_t browser_cmd(U("open \"") + auth_uri + U("\""));
67-
system(browser_cmd.c_str());
67+
(void)system(browser_cmd.c_str());
6868
#else
6969
// NOTE: Linux/X11 only.
7070
string_t browser_cmd(U("xdg-open \"") + auth_uri + U("\""));
71-
system(browser_cmd.c_str());
71+
(void)system(browser_cmd.c_str());
7272
#endif
7373
}
7474

@@ -301,3 +301,4 @@ int main(int argc, char *argv[])
301301
ucout << "Done." << std::endl;
302302
return 0;
303303
}
304+

Release/samples/Oauth2Client/Oauth2Client.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ static void open_browser(utility::string_t auth_uri)
6767
#elif defined(__APPLE__)
6868
// NOTE: OS X only.
6969
string_t browser_cmd(U("open \"") + auth_uri + U("\""));
70-
system(browser_cmd.c_str());
70+
(void)system(browser_cmd.c_str());
7171
#else
7272
// NOTE: Linux/X11 only.
7373
string_t browser_cmd(U("xdg-open \"") + auth_uri + U("\""));
74-
system(browser_cmd.c_str());
74+
(void)system(browser_cmd.c_str());
7575
#endif
7676
}
7777

@@ -321,3 +321,4 @@ int main(int argc, char *argv[])
321321
ucout << "Done." << std::endl;
322322
return 0;
323323
}
324+

0 commit comments

Comments
 (0)