chan_vpb: Avoid GNU old-style field designator extension.

clang 6.0 warned about this. Beside that, this change removes the used variable
'desc'.

ASTERISK-27808

Change-Id: Ia26bdcc0a562c058151814511cfcf70ecafa595b
This commit is contained in:
Alexander Traud
2018-04-17 12:31:52 +02:00
parent ad0ba520b5
commit fb9634bcb3

View File

@@ -110,7 +110,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#endif #endif
/**/ /**/
static const char desc[] = "VoiceTronix V6PCI/V12PCI/V4PCI API Support";
static const char tdesc[] = "Standard VoiceTronix API Driver"; static const char tdesc[] = "Standard VoiceTronix API Driver";
static const char config[] = "vpb.conf"; static const char config[] = "vpb.conf";
@@ -362,63 +361,63 @@ static int vpb_indicate(struct ast_channel *ast, int condition, const void *data
static int vpb_fixup(struct ast_channel *oldchan, struct ast_channel *newchan); static int vpb_fixup(struct ast_channel *oldchan, struct ast_channel *newchan);
static struct ast_channel_tech vpb_tech = { static struct ast_channel_tech vpb_tech = {
type: "vpb", .type = "vpb",
description: tdesc, .description = tdesc,
capabilities: NULL, .capabilities = NULL,
properties: 0, .properties = 0,
requester: vpb_request, .requester = vpb_request,
devicestate: NULL, .devicestate = NULL,
send_digit_begin: vpb_digit_begin, .send_digit_begin = vpb_digit_begin,
send_digit_end: vpb_digit_end, .send_digit_end = vpb_digit_end,
call: vpb_call, .call = vpb_call,
hangup: vpb_hangup, .hangup = vpb_hangup,
answer: vpb_answer, .answer = vpb_answer,
read: vpb_read, .read = vpb_read,
write: vpb_write, .write = vpb_write,
send_text: NULL, .send_text = NULL,
send_image: NULL, .send_image = NULL,
send_html: NULL, .send_html = NULL,
exception: NULL, .exception = NULL,
early_bridge: NULL, .early_bridge = NULL,
indicate: vpb_indicate, .indicate = vpb_indicate,
fixup: vpb_fixup, .fixup = vpb_fixup,
setoption: NULL, .setoption = NULL,
queryoption: NULL, .queryoption = NULL,
transfer: NULL, .transfer = NULL,
write_video: NULL, .write_video = NULL,
write_text: NULL, .write_text = NULL,
func_channel_read: NULL, .func_channel_read = NULL,
func_channel_write: NULL, .func_channel_write = NULL,
}; };
static struct ast_channel_tech vpb_tech_indicate = { static struct ast_channel_tech vpb_tech_indicate = {
type: "vpb", .type = "vpb",
description: tdesc, .description = tdesc,
capabilities: NULL, .capabilities = NULL,
properties: 0, .properties = 0,
requester: vpb_request, .requester = vpb_request,
devicestate: NULL, .devicestate = NULL,
send_digit_begin: vpb_digit_begin, .send_digit_begin = vpb_digit_begin,
send_digit_end: vpb_digit_end, .send_digit_end = vpb_digit_end,
call: vpb_call, .call = vpb_call,
hangup: vpb_hangup, .hangup = vpb_hangup,
answer: vpb_answer, .answer = vpb_answer,
read: vpb_read, .read = vpb_read,
write: vpb_write, .write = vpb_write,
send_text: NULL, .send_text = NULL,
send_image: NULL, .send_image = NULL,
send_html: NULL, .send_html = NULL,
exception: NULL, .exception = NULL,
early_bridge: NULL, .early_bridge = NULL,
indicate: NULL, .indicate = NULL,
fixup: vpb_fixup, .fixup = vpb_fixup,
setoption: NULL, .setoption = NULL,
queryoption: NULL, .queryoption = NULL,
transfer: NULL, .transfer = NULL,
write_video: NULL, .write_video = NULL,
write_text: NULL, .write_text = NULL,
func_channel_read: NULL, .func_channel_read = NULL,
func_channel_write: NULL, .func_channel_write = NULL,
}; };
#if defined(VPB_NATIVE_BRIDGING) #if defined(VPB_NATIVE_BRIDGING)