[asterisk-commits] mjordan: branch 13 r433682 - /branches/13/res/res_pjsip/config_transport.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Mar 28 07:27:11 CDT 2015


Author: mjordan
Date: Sat Mar 28 07:27:08 2015
New Revision: 433682

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433682
Log:
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)

Modified:
    branches/13/res/res_pjsip/config_transport.c

Modified: branches/13/res/res_pjsip/config_transport.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/res/res_pjsip/config_transport.c?view=diff&rev=433682&r1=433681&r2=433682
==============================================================================
--- branches/13/res/res_pjsip/config_transport.c (original)
+++ branches/13/res/res_pjsip/config_transport.c Sat Mar 28 07:27:08 2015
@@ -377,7 +377,6 @@
 }
 
 static const char *tls_method_map[] = {
-	[PJSIP_SSL_DEFAULT_METHOD] = "default",
 	[PJSIP_SSL_UNSPECIFIED_METHOD] = "unspecified",
 	[PJSIP_TLSV1_METHOD] = "tlsv1",
 	[PJSIP_SSLV2_METHOD] = "sslv2",




More information about the asterisk-commits mailing list