[asterisk-bugs] [Asterisk 0012932]: [patch] Union rather than cast for outbuf (translate.h)

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Nov 2 19:55:17 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12932 
====================================================================== 
Reported By:                snuffy
Assigned To:                kpfleming
====================================================================== 
Project:                    Asterisk
Issue ID:                   12932
Category:                   Core/Portability
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 124869 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-06-26 10:28 CDT
Last Modified:              2008-11-02 19:55 CST
====================================================================== 
Summary:                    [patch] Union rather than cast for outbuf
(translate.h)
Description: 
This is part of the things i tried to achieve under solaris to fix
alginment issues. ( issue http://bugs.digium.com/view.php?id=11485 )

This has only had very basic tests done.. alaw/ulaw to gsm etc.
Playback seemed fine.

Probably want to rename some of the unions var names but its a start
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0011485 Alignment issues building on solaris sparc
====================================================================== 

---------------------------------------------------------------------- 
 (0094508) snuffy (manager) - 2008-11-02 19:55
 http://bugs.digium.com/view.php?id=12932#c94508 
---------------------------------------------------------------------- 
I have managed to find some time to test compile aligner2 again.

my latest error on compilation (note i'm excluding chan_iax2 and /utils
dir in build)

astobj2.c: In function `INTERNAL_OBJ':
astobj2.c:112: warning: cast increases required alignment of target type
gmake[1]: *** [astobj2.o] Error 1
gmake[1]: Leaving directory `/home/support/algin-ast/main'
gmake: *** [main] Error 2
-bash-3.00$ vi main/astobj2.c 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-02 19:55 snuffy         Note Added: 0094508                          
======================================================================




More information about the asterisk-bugs mailing list