diff options
author | Anders Broman <anders.broman@ericsson.com> | 2008-09-03 17:03:30 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2008-09-03 17:03:30 +0000 |
commit | e708889484247da6fbeb513f14acf3e7951844d9 (patch) | |
tree | 4876f1d194c941ba907f89a1647b53573c52c051 /epan/dissectors/packet-rrc.c | |
parent | 419e3a47f6a9c887edc949235dc0755a98d4c4ee (diff) |
Try to fix unused code warnings(hack).
svn path=/trunk/; revision=26129
Diffstat (limited to 'epan/dissectors/packet-rrc.c')
-rw-r--r-- | epan/dissectors/packet-rrc.c | 70 |
1 files changed, 67 insertions, 3 deletions
diff --git a/epan/dissectors/packet-rrc.c b/epan/dissectors/packet-rrc.c index af58271dc8..00fe22aefe 100644 --- a/epan/dissectors/packet-rrc.c +++ b/epan/dissectors/packet-rrc.c @@ -98443,6 +98443,70 @@ static int dissect_MeasurementReport_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _ /*--- End of included file: packet-rrc-fn.c ---*/ #line 76 "packet-rrc-template.c" +/* +TODO: Remove the dummy function when these functions are taken into use + + These functions are not referenced from the ASN1 specifications + as this generates a lot of unsued code warings from GCC this dummy function + is introduced to reduce the number of warnings until the proper use is discovered + */ + +static void +dissect_rrc_dymmy_remove_unused_code_warnings(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_){ + + /* Dummy code to keep GCC happy */ + switch(hf_index){ + case 0: + dissect_rrc_HandoverToUTRANCommand( tvb, offset, actx , tree, hf_index); + dissect_rrc_InterRATHandoverInfo( tvb, offset, actx , tree, hf_index); + dissect_rrc_UE_RadioAccessCapabilityInfo( tvb, offset, actx , tree, hf_index); + dissect_rrc_UL_PhysChCapabilityFDD_r6( tvb, offset, actx , tree, hf_index); + dissect_rrc_UE_Positioning_GANSS_Data( tvb, offset, actx , tree, hf_index); + dissect_rrc_MasterInformationBlock( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType1( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType2( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType3( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType4( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType5bis( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType6( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType7( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType8( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType9( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType10( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType11( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType11bis( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType12( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType13( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType13_1( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType13_2( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType13_3( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType13_4( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType14( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType15( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType15bis( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType15_1( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType15_1bis( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType15_2( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType15_2bis( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType15_3( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType15_3bis( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType15_4( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType15_5( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType15_6( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType15_7( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType15_8( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType16( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType17( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoType18( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoTypeSB1( tvb, offset, actx , tree, hf_index); + dissect_rrc_SysInfoTypeSB2( tvb, offset, actx , tree, hf_index); + dissect_rrc_ToTargetRNC_Container( tvb, offset, actx , tree, hf_index); + dissect_rrc_TargetRNC_ToSourceRNC_Container( tvb, offset, actx , tree, hf_index); + break; + default: + break; + } +} static void dissect_rrc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) @@ -125499,7 +125563,7 @@ void proto_register_rrc(void) { "", HFILL }}, /*--- End of included file: packet-rrc-hfarr.c ---*/ -#line 105 "packet-rrc-template.c" +#line 169 "packet-rrc-template.c" }; /* List of subtrees */ @@ -129759,7 +129823,7 @@ void proto_register_rrc(void) { &ett_rrc_UL_RFC3095_Context, /*--- End of included file: packet-rrc-ettarr.c ---*/ -#line 111 "packet-rrc-template.c" +#line 175 "packet-rrc-template.c" }; @@ -129789,7 +129853,7 @@ void proto_register_rrc(void) { /*--- End of included file: packet-rrc-dis-reg.c ---*/ -#line 124 "packet-rrc-template.c" +#line 188 "packet-rrc-template.c" } |