Additionally, we should probably use something like :
#ifdef __GNUC__
#define SOFIA_GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+ __GNUC_PATCHLEVEL__)
#if SOFIA_GCC_VERSION >= 300200
#define SOFIA_GCC_ATTR_MALLOC __attribute__ ((__malloc__))
#endif
#else
#define SOFIA_GCC_ATTR_MALLOC
#endif
Or, alternatively a configure check to determine if the attribute is
available (something similar to
http://mail.nl.linux.org/tinc-cvs/2003-07/msg00141.html) as these are
gcc specific and could potentially cause issues for other compilers.
Mike
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:sofia-sip-
> [EMAIL PROTECTED] On Behalf Of Michael Jerris
> Sent: Tuesday, November 14, 2006 5:02 PM
> To: [email protected]
> Cc: Pekka Pessi
> Subject: [Sofia-sip-devel] build warning in su_alloch.h
>
> Patch to not use __attribute__((__malloc__)) on functions that don't
> return pointers from su_alloc.h.
>
> This causes build errors when the consumer program has -Wall -Werror.
>
> http://www.freeswitch.org/eg/attrmalloc.patch
>
> Mike
>
>
------------------------------------------------------------------------
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
> _______________________________________________
> Sofia-sip-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel