summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2015-03-28 12:32:42 +0000
committerMatthew Jordan <mjordan@digium.com>2015-03-28 12:32:42 +0000
commitc747b3b12a66ae8618bb7737f1f50e834042a15d (patch)
tree03dc518bb8a7c7173614350c7adfb7d5e6b5a3c7
parentd6173cd1d06c2278636a5144ebb81a156a62b313 (diff)
clang compiler warnings: Fix -Winitializer-overrides
This patch fixes clange compiler warnings for initializer overrides. Specifically: res_pjsip/config_transport maps PJSIP_TLSV1_METHOD to the same enumeration value as PJSIP_SSL_DEFAULT_METHOD. When initializing an array containing those enum values, we therefore initialize the value twice to two different values, "tlsv1" and "default". This patch changes it to just initialize the index in the array to "tlsv1". Review: https://reviewboard.asterisk.org/r/4539/ ASTERISK-24917 Reported by: dkdegroot patches: rb4539.patch submitted by dkdegroot (License 6600) ........ Merged revisions 433682 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@433685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--res/res_pjsip/config_transport.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/res/res_pjsip/config_transport.c b/res/res_pjsip/config_transport.c
index 9c7298b98..73030b155 100644
--- a/res/res_pjsip/config_transport.c
+++ b/res/res_pjsip/config_transport.c
@@ -377,7 +377,6 @@ static int transport_tls_method_handler(const struct aco_option *opt, struct ast
}
static const char *tls_method_map[] = {
- [PJSIP_SSL_DEFAULT_METHOD] = "default",
[PJSIP_SSL_UNSPECIFIED_METHOD] = "unspecified",
[PJSIP_TLSV1_METHOD] = "tlsv1",
[PJSIP_SSLV2_METHOD] = "sslv2",