summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2014-02-06 11:06:42 +0000
committerBenny Prijono <bennylp@teluu.com>2014-02-06 11:06:42 +0000
commit81bcd08a08206c384df6725ea7649c80e4f72e42 (patch)
tree488ddb5dd117537da8888e789e097a8556dd3867
parent364a67b3586ff17e0ea6ac25f141751e7392c940 (diff)
Misc (re #1630): another fixes for gcc warnings about variable set but unused
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4736 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjmedia/src/pjmedia-videodev/v4l2_dev.c1
-rw-r--r--pjmedia/src/pjmedia/format.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/pjmedia/src/pjmedia-videodev/v4l2_dev.c b/pjmedia/src/pjmedia-videodev/v4l2_dev.c
index 014d6596..e5d8132f 100644
--- a/pjmedia/src/pjmedia-videodev/v4l2_dev.c
+++ b/pjmedia/src/pjmedia-videodev/v4l2_dev.c
@@ -557,6 +557,7 @@ static pj_status_t vid4lin_factory_create_stream(pjmedia_vid_dev_factory *f,
vdi = &cf->dev_info[param->cap_id];
vfd = pjmedia_format_get_video_format_detail(&param->fmt, PJ_TRUE);
+ PJ_UNUSED_ARG(vfd); /* Unused for now */
/* Create and Initialize stream descriptor */
pool = pj_pool_create(cf->pf, vdi->info.name, 512, 512, NULL);
diff --git a/pjmedia/src/pjmedia/format.c b/pjmedia/src/pjmedia/format.c
index c9cfb368..f344ad62 100644
--- a/pjmedia/src/pjmedia/format.c
+++ b/pjmedia/src/pjmedia/format.c
@@ -321,7 +321,6 @@ pjmedia_get_video_format_info(pjmedia_video_format_mgr *mgr,
pj_uint32_t id)
{
pjmedia_video_format_info **first;
- int comp;
unsigned n;
if (!mgr)
@@ -330,7 +329,6 @@ pjmedia_get_video_format_info(pjmedia_video_format_mgr *mgr,
PJ_ASSERT_RETURN(mgr != NULL, NULL);
/* Binary search for the appropriate format id */
- comp = -1;
first = &mgr->infos[0];
n = mgr->info_cnt;
for (; n > 0; ) {