[Asterisk-Dev] Re: asterisk/include/asterisk utils.h,1.46,1.47

Luigi Rizzo rizzo at icir.org
Mon Oct 31 11:52:28 MST 2005


On Mon, Oct 31, 2005 at 12:44:42PM -0600, Kevin P. Fleming wrote:
> Luigi Rizzo wrote:
> 
> > The following fails with gcc 3.4.4 as well, for t defined as [u]int{8|16}_t,
> > on FreeBSD at least.
> 
> The initial answer from the GCC community is just as you proposed; 
> because the platform's ABI can only pass 32-bit quantities by value, 
> then the function's prototype is implicitly converted into 'int' or 
> 'unsigned int', which generates the warning.
> 
> Personally I think this warning is bogus, since it is not a failing the 
> source code, but an artifact of the platform's ABI and optimizations, 
> but I don't have time to pursue it with the GCC team (which may very 
> well be a futile effort anyway <G>).

i personally agree that the warning is bogus, and this is also
the opinion i read on some of the FreeBSD lists. But, not being
able to provide or even suggest a fix, i don't see much of an
alternative than trying to code around it when it is not too disgusting.

	cheers
	luigi



More information about the asterisk-dev mailing list