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

noreply at bugs.digium.com noreply at bugs.digium.com
Sun Jun 29 03:48:31 CDT 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:             06-26-2008 10:28 CDT
Last Modified:              06-29-2008 03:48 CDT
====================================================================== 
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
====================================================================== 

---------------------------------------------------------------------- 
 snuffy - 06-29-08 03:48  
---------------------------------------------------------------------- 
This is the error you will recieve without said patch.

codec_adpcm.c: In function `adpcmtolin_framein':
codec_adpcm.c:233: warning: cast increases required alignment of target
type
gmake[1]: *** [codec_adpcm.o] Error 1
gmake[1]: Leaving directory `/global/home/brad/ast-trunk/codecs'
gmake: *** [codecs] Error codec_adpcm.c: In function
`adpcmtolin_framein':
codec_adpcm.c:233: warning: cast increases required alignment of target
type
gmake[1]: *** [codec_adpcm.o] Error 1
gmake[1]: Leaving directory `/global/home/brad/ast-trunk/codecs'
gmake: *** [codecs] Error 2 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-29-08 03:48  snuffy         Note Added: 0089410                          
======================================================================




More information about the asterisk-bugs mailing list