C15CH: fix unused (const) variable found by Clang
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Sat, 25 Apr 2015 12:39:00 +0000 (14:39 +0200)
committerAnders Broman <a.broman58@gmail.com>
Sun, 26 Apr 2015 06:46:17 +0000 (06:46 +0000)
packet-c15ch.c:1523:22: warning: unused variable 'MIN_PM_VAL' [-Wunused-const-variable]
packet-c15ch.c:1611:22: warning: unused variable 'MIN_DIG_CKT_TEST_TRKPM_VAL' [-Wunused-const-variable]
packet-c15ch.c:3006:21: warning: unused variable 'FIRST_TASK_TYPE_INDEX' [-Wunused-const-variable]

Change-Id: I09ba83acc4515fe9818cd43f9ac2ec7fe7196bae
Reviewed-on: https://code.wireshark.org/review/8193
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-c15ch.c

index 27a9888e376374f83d7b52b632c9b4a02f2af5de..485019f4be6524c086e6af7528e5ab4a96897dbf 100644 (file)
@@ -1517,7 +1517,7 @@ static int hf_c15ch_cp_event_subpm_sig_dest = -1;
 static int hf_c15ch_cp_event_subpm_agl_splrg = -1;
 
 
-static const guint32 MIN_PM_VAL = 0;
+/*static const guint32 MIN_PM_VAL = 0; */
 static const guint32 MAX_PM_VAL = 77;
 static int * subpm_table[] = {
     /* one entry for each PM type */
@@ -1605,7 +1605,7 @@ static const guint32 DIG_CKT_TEST_PM_VALUE = 40;
 
 /* special table to look up subpm for pm_val = DIG_CKT_TEST__PM_VALUE */
 /* this table is indexed by trunk pm numbers */
-static const guint32 MIN_DIG_CKT_TEST_TRKPM_VAL = 0;
+/*static const guint32 MIN_DIG_CKT_TEST_TRKPM_VAL = 0; */
 static const guint32 MAX_DIG_CKT_TEST_TRKPM_VAL = 5;
 static int * dig_ckt_test_subpm_table[] = {
     /* one entry for each TRKPM value in the expected range */
@@ -3000,7 +3000,7 @@ static int * fiatid_table[] = {
     &hf_c15ch_inc_gwe_fiatid_admn
 };
 
-static const guint8 FIRST_TASK_TYPE_INDEX = 0;
+/*static const guint8 FIRST_TASK_TYPE_INDEX = 0;*/
 static const guint8  LAST_TASK_TYPE_INDEX = 8;