diff options
author | jstebbins <[email protected]> | 2012-05-26 09:33:14 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-05-26 09:33:14 +0000 |
commit | e171cf6645d2d43e44ec40a3f5f918b6397580c7 (patch) | |
tree | a7ceebcfe04238c4264f982756006eded73f1bb9 | |
parent | 776795b2995044dc92b02e10155fff2644776fe3 (diff) |
fix more compiler warnings
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4702 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/decsrtsub.c | 4 | ||||
-rw-r--r-- | libhb/decvobsub.c | 5 | ||||
-rw-r--r-- | libhb/work.c | 2 | ||||
-rw-r--r-- | test/test.c | 2 |
4 files changed, 3 insertions, 10 deletions
diff --git a/libhb/decsrtsub.c b/libhb/decsrtsub.c index c914e9c91..e70676c4c 100644 --- a/libhb/decsrtsub.c +++ b/libhb/decsrtsub.c @@ -233,11 +233,11 @@ static hb_buffer_t *srt_read( hb_work_private_t *pv ) case k_state_inEntry_or_new: { char *endpoint; - long entry_number; /* * Is this really new next entry begin? + * Look for entry number. */ - entry_number = strtol(line_buffer, &endpoint, 10); + strtol(line_buffer, &endpoint, 10); if (endpoint == line_buffer || (endpoint && *endpoint != '\n' && *endpoint != '\r')) { diff --git a/libhb/decvobsub.c b/libhb/decvobsub.c index 3c52596d1..64353d941 100644 --- a/libhb/decvobsub.c +++ b/libhb/decvobsub.c @@ -215,12 +215,9 @@ hb_work_object_t hb_decvobsub = static void ParseControls( hb_work_object_t * w ) { hb_work_private_t * pv = w->private_data; - hb_job_t * job = pv->job; - hb_title_t * title = job->title; - hb_subtitle_t * subtitle; uint8_t * buf = pv->buf->data; - int i, n; + int i; int command; int date, next; diff --git a/libhb/work.c b/libhb/work.c index 0cb8fd13a..dd306d3fa 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -526,7 +526,6 @@ static void do_job( hb_job_t * job ) hb_audio_t * audio; hb_subtitle_t * subtitle; unsigned int subtitle_highest = 0; - unsigned int subtitle_highest_id = 0; unsigned int subtitle_lowest = 0; unsigned int subtitle_lowest_id = 0; unsigned int subtitle_forced_id = 0; @@ -1362,7 +1361,6 @@ cleanup: if( subtitle_highest < subtitle->hits ) { subtitle_highest = subtitle->hits; - subtitle_highest_id = subtitle->id; } if( subtitle_lowest == 0 || diff --git a/test/test.c b/test/test.c index 78b7805f8..e632bc6cc 100644 --- a/test/test.c +++ b/test/test.c @@ -2253,7 +2253,6 @@ static int HandleEvents( hb_handle_t * h ) if( srtfile ) { - char * token; int i; hb_subtitle_config_t sub_config; @@ -2263,7 +2262,6 @@ static int HandleEvents( hb_handle_t * h ) int64_t offset = 0; char *lang = "und"; - token = srtfile[i]; if( srtcodeset && srtcodeset[i] ) { codeset = srtcodeset[i]; |