diff --git a/mythtv/libs/libmythtv/cardutil.cpp b/mythtv/libs/libmythtv/cardutil.cpp index 572b0a9fd6f..6d09845d601 100644 --- a/mythtv/libs/libmythtv/cardutil.cpp +++ b/mythtv/libs/libmythtv/cardutil.cpp @@ -2380,7 +2380,7 @@ QString CardUtil::GetHDHRdesc(const QString &device) if (!validID || !hdhomerun_discover_validate_device_id(dev)) return QObject::tr("Invalid Device ID"); } - + (void) deviceIsIP; LOG(VB_GENERAL, LOG_INFO, "CardUtil::GetHDHRdescription(" + device + ") - trying to locate device"); diff --git a/mythtv/libs/libmythtv/mpeg/H264Parser.cpp b/mythtv/libs/libmythtv/mpeg/H264Parser.cpp index 716b7a1a042..e8dce4363bf 100644 --- a/mythtv/libs/libmythtv/mpeg/H264Parser.cpp +++ b/mythtv/libs/libmythtv/mpeg/H264Parser.cpp @@ -574,8 +574,6 @@ void H264Parser::processRBSP(bool rbsp_complete) */ bool H264Parser::decode_Header(GetBitContext *gb) { - uint first_mb_in_slice; - is_keyframe = false; if (log2_max_frame_num == 0 || pic_order_present_flag == -1) @@ -601,7 +599,7 @@ bool H264Parser::decode_Header(GetBitContext *gb) that precedes the current slice in decoding order and has the same value of colour_plane_id. */ - first_mb_in_slice = get_ue_golomb(gb); + //uint first_mb_in_slice = get_ue_golomb(gb); /* slice_type specifies the coding type of the slice according to @@ -808,7 +806,6 @@ void H264Parser::decode_SPS(GetBitContext * gb) int offset_for_non_ref_pic; int offset_for_top_to_bottom_field; uint tmp; - bool gaps_in_frame_num_allowed_flag; /* pic_order_cnt_type specifies the method to decode picture order @@ -866,6 +863,8 @@ void H264Parser::decode_SPS(GetBitContext * gb) for (uint idx = 0; idx < tmp; ++idx) get_se_golomb(gb); // offset_for_ref_frame[i] } + (void) offset_for_non_ref_pic; // suppress unused var warning + (void) offset_for_top_to_bottom_field; // suppress unused var warning /* num_ref_frames specifies the maximum number of short-term and @@ -884,7 +883,7 @@ void H264Parser::decode_SPS(GetBitContext * gb) decoding process in case of an inferred gap between values of frame_num as specified in subclause 8.2.5.2. */ - gaps_in_frame_num_allowed_flag = get_bits1(gb); + //bool gaps_in_frame_num_allowed_flag = get_bits1(gb); /* pic_width_in_mbs_minus1 plus 1 specifies the width of each @@ -1067,6 +1066,10 @@ void H264Parser::decode_SEI(GetBitContext *gb) break; } } + + (void) exact_match_flag; // suppress unused var warning + (void) broken_link_flag; // suppress unused var warning + (void) changing_group_slice_idc; // suppress unused var warning } void H264Parser::vui_parameters(GetBitContext * gb) diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp index d7710c60cbc..f714befdd5c 100644 --- a/mythtv/libs/libmythtv/mythplayer.cpp +++ b/mythtv/libs/libmythtv/mythplayer.cpp @@ -1571,7 +1571,6 @@ void MythPlayer::EnableForcedSubtitles(bool enable) void MythPlayer::SetAllowForcedSubtitles(bool allow) { - bool old = allowForcedSubtitles; allowForcedSubtitles = allow; SetOSDMessage(allowForcedSubtitles ? tr("Forced Subtitles On") : diff --git a/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp b/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp index 8c09092ba10..6e0c3740f83 100644 --- a/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp +++ b/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp @@ -426,7 +426,6 @@ bool DTVRecorder::FindMPEG2Keyframes(const TSPacket* tspacket) const uint8_t *bufptr = tspacket->data() + tspacket->AFCOffset(); const uint8_t *bufend = tspacket->data() + TSPacket::kSize; int ext_type, bytes_left; - int picture_structure, top_field_first, repeat_first_field, progressive_frame; _repeat_pict = 0; while (bufptr < bufend) @@ -475,10 +474,10 @@ bool DTVRecorder::FindMPEG2Keyframes(const TSPacket* tspacket) case 0x8: /* picture coding extension */ if (bytes_left >= 5) { - picture_structure = bufptr[2]&3; - top_field_first = bufptr[3] & (1 << 7); - repeat_first_field = bufptr[3] & (1 << 1); - progressive_frame = bufptr[4] & (1 << 7); + //int picture_structure = bufptr[2]&3; + int top_field_first = bufptr[3] & (1 << 7); + int repeat_first_field = bufptr[3] & (1 << 1); + int progressive_frame = bufptr[4] & (1 << 7); /* check if we must repeat the frame */ _repeat_pict = 1;