summaryrefslogtreecommitdiff
path: root/unit
diff options
context:
space:
mode:
authorKuba Pawlak <kuba.t.pawlak@gmail.com>2016-04-18 13:45:36 +0200
committerDenis Kenzior <denkenz@gmail.com>2016-04-18 09:59:09 -0500
commiteb23a88956a355a059e3987667cc4cc5edc2eea8 (patch)
treec6d0f5f9377c39ac02678b7a3f62939aa4f3a1b2 /unit
parentdee50a7565c9bf9a62f5513316a3285480c840d0 (diff)
downloadofono-eb23a88956a355a059e3987667cc4cc5edc2eea8.tar.gz
unit: fix GCC 6.0 compilation issues
-Werror=unused-const-variable
Diffstat (limited to 'unit')
-rw-r--r--unit/test-rilmodem-cb.c23
-rw-r--r--unit/test-stkutil.c33
2 files changed, 0 insertions, 56 deletions
diff --git a/unit/test-rilmodem-cb.c b/unit/test-rilmodem-cb.c
index d5b1d07d..43c6fa17 100644
--- a/unit/test-rilmodem-cb.c
+++ b/unit/test-rilmodem-cb.c
@@ -234,29 +234,6 @@ static const struct cb_data testdata_query_invalid_3 = {
.error_type = OFONO_ERROR_TYPE_FAILURE,
};
-/*
- * The following structure contains test data for a
- * RIL_REQUEST_GET_FACILITY_LOCK reply with an incomplete
- * integer parameter, which will trigger a malformed parcel
- * error.
- */
-static const guchar reply_get_facility_lock_data_invalid_4[] = {
- 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00
-};
-
-static const struct cb_data testdata_query_invalid_4 = {
- .start_func = trigger_query,
- .lock = "OI",
- .cls = BEARER_CLASS_VOICE,
- .rtd = {
- .req_data = req_get_facility_lock_parcel_1,
- .req_size = sizeof(req_get_facility_lock_parcel_1),
- .rsp_data = reply_get_facility_lock_data_invalid_4,
- .rsp_size = sizeof(reply_get_facility_lock_data_invalid_4),
- },
- .error_type = OFONO_ERROR_TYPE_FAILURE,
-};
-
/* RIL_REQUEST_SET_FACILITY_LOCK witht the following parameters:
*
* facility="OI" (outgoing international calls)
diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c
index 77ec3530..bf6776ea 100644
--- a/unit/test-stkutil.c
+++ b/unit/test-stkutil.c
@@ -16867,11 +16867,6 @@ static const struct terminal_response_test get_input_response_data_181 = {
},
};
-static const unsigned char get_input_response_191b[] = {
- 0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x82,
- 0x81, 0x83, 0x01, 0x00, 0x8d, 0x00,
-};
-
static const struct terminal_response_test get_input_response_data_191 = {
/* Either get_input_response_191a or get_input_response_191b is ok */
.pdu = get_input_response_191a,
@@ -17349,11 +17344,6 @@ static const unsigned char poll_interval_response_111a[] = {
0x81, 0x83, 0x01, 0x00, 0x84, 0x02, 0x00, 0x01,
};
-static const unsigned char poll_interval_response_111b[] = {
- 0x81, 0x03, 0x01, 0x03, 0x00, 0x82, 0x02, 0x82,
- 0x81, 0x83, 0x01, 0x00, 0x84, 0x02, 0x01, 0x3c,
-};
-
static const struct terminal_response_test poll_interval_response_data_111a = {
/* Either poll_interval_response_111a or b is ok */
.pdu = poll_interval_response_111a,
@@ -17476,26 +17466,6 @@ static const struct terminal_response_test refresh_response_data_131a = {
},
};
-static const unsigned char refresh_response_131b[] = {
- 0x81, 0x03, 0x01, 0x01, 0x02, 0x82, 0x02, 0x82,
- 0x81, 0x83, 0x01, 0x03,
-};
-
-static const struct terminal_response_test refresh_response_data_131b = {
- .pdu = refresh_response_131b,
- .pdu_len = sizeof(refresh_response_131b),
- .response = {
- .number = 1,
- .type = STK_COMMAND_TYPE_REFRESH,
- .qualifier = 0x02, /* USIM Initialization & File Change */
- .src = STK_DEVICE_IDENTITY_TYPE_TERMINAL,
- .dst = STK_DEVICE_IDENTITY_TYPE_UICC,
- .result = {
- .type = STK_RESULT_TYPE_REFRESH_WITH_EFS,
- },
- },
-};
-
static const unsigned char refresh_response_141a[] = {
0x81, 0x03, 0x01, 0x01, 0x00, 0x82, 0x02, 0x82,
0x81, 0x83, 0x01, 0x00,
@@ -18338,9 +18308,6 @@ static const unsigned char provide_local_info_response_131[] = {
0x06, 0x45, 0x91, 0xa4, 0x90,
};
-static const short bcch_channels_131[] = {
-};
-
static const struct terminal_response_test
provide_local_info_response_data_131 = {
.pdu = provide_local_info_response_131,