From e96a59acfdbd655045ad8d8292cde674d2236645 Mon Sep 17 00:00:00 2001 From: Jonathan Rose Date: Wed, 4 Apr 2012 18:08:28 +0000 Subject: Replace GNU old-style field designator extensions to fix clang warnings (issue ASTERISK-19540) Reported by: Makoto Dei Patches: clang-gnu-designator.patch uploaded by Makoto Dei (license 5027) ........ Also add from the patch the portion in res_fax_spandsp that didn't apply to 1.8 Merged revisions 361142 from http://svn.asterisk.org/svn/asterisk/branches/1.8 (closes issue ASTERISK-19540) ........ Merged revisions 361143 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@361155 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_fax_spandsp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'res') diff --git a/res/res_fax_spandsp.c b/res/res_fax_spandsp.c index ffbb8999d..901ec48c0 100644 --- a/res/res_fax_spandsp.c +++ b/res/res_fax_spandsp.c @@ -759,9 +759,9 @@ static int spandsp_fax_gateway_start(struct ast_fax_session *s) { int i; struct ast_channel *peer; static struct ast_generator t30_gen = { - alloc: spandsp_fax_gw_gen_alloc, - release: spandsp_fax_gw_gen_release, - generate: spandsp_fax_gw_t30_gen, + .alloc = spandsp_fax_gw_gen_alloc, + .release = spandsp_fax_gw_gen_release, + .generate = spandsp_fax_gw_t30_gen, }; #if SPANDSP_RELEASE_DATE >= 20081012 -- cgit v1.2.3