On Fri, Mar 30, 2012 at 3:40 PM, Gustavo Sverzut Barbieri
<barbi...@profusion.mobi> wrote:
> On Thu, Mar 29, 2012 at 5:55 PM, Enlightenment SVN
> <no-re...@enlightenment.org> wrote:
>> Log:
>> Remove warnings about unused parameters in examples.
>>
>> Author:       gastal
>> Date:         2012-03-29 13:55:55 -0700 (Thu, 29 Mar 2012)
>> New Revision: 69769
>> Trac:         http://trac.enlightenment.org/e/changeset/69769
>>
>> Modified:
>>  trunk/elementary/src/examples/Makefile.am
>>
>> Modified: trunk/elementary/src/examples/Makefile.am
>> ===================================================================
>> --- trunk/elementary/src/examples/Makefile.am   2012-03-29 20:51:52 UTC (rev 
>> 69768)
>> +++ trunk/elementary/src/examples/Makefile.am   2012-03-29 20:55:55 UTC (rev 
>> 69769)
>> @@ -7,6 +7,7 @@
>>  files_DATA =
>>
>>  AM_CPPFLAGS = \
>> +-Wno-unused-parameter \
>
> I'll wait for Vincent take on this, but for sure it will break with
> non-gcc... but do we support non-gcc?
>
> The correct solution is a bit of a PITA, you need to save flags in
> configure.ac, test if compiler supports, then save the flag in a
> special variable you ask for replacement
> (@NO_UNUSED_PARAMETER_CFLAGS@) at Makefile.am... :-/

i've written a macro that checks if a compiler flag is supported, and
ad it to CFLAGS. Loook in eina/m4/common

Vincent

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to