diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-01-01 22:08:21 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-01-01 22:08:21 +0000 |
commit | e8292035968488eb3a9b61a431afc8c9a39f51d3 (patch) | |
tree | 37b6e83a23282b53ed0ab8a602498798bb56c57d /pjsip-apps/src/samples/pjsip-perf.c | |
parent | 423bd3b19d5611412da90b87f6989dc89339defa (diff) |
Fixed gcc-4.3.2 warnings with the warn_unused_result flag in some APIs
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2408 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/samples/pjsip-perf.c')
-rw-r--r-- | pjsip-apps/src/samples/pjsip-perf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pjsip-apps/src/samples/pjsip-perf.c b/pjsip-apps/src/samples/pjsip-perf.c index e2a00183..ac8a5521 100644 --- a/pjsip-apps/src/samples/pjsip-perf.c +++ b/pjsip-apps/src/samples/pjsip-perf.c @@ -1809,7 +1809,7 @@ int main(int argc, char *argv[]) } else { /* Server mode */ - char s[10]; + char s[10], *unused; pj_status_t status; unsigned i; @@ -1844,7 +1844,8 @@ int main(int argc, char *argv[]) puts("\nPress <ENTER> to quit\n"); fflush(stdout); - fgets(s, sizeof(s), stdin); + unused = fgets(s, sizeof(s), stdin); + PJ_UNUSED_ARG(unused); app.thread_quit = PJ_TRUE; for (i=0; i<app.thread_count; ++i) { |