[Olsr-dev] Android NDK does not support -Wdouble-promotion, -Wjump-misses-init, and -Wtrampolines

Henning Rogge (spam-protected)
Wed Jun 6 22:53:38 CEST 2012


Normally, the "gcc warning" script should check which options produce
an error and remove them...

strange...

Henning

On Wed, Jun 6, 2012 at 10:50 PM, Ferry Huberts <(spam-protected)> wrote:
>
>
> On 06-06-12 22:35, Hans-Christoph Steiner wrote:
>>
>>
>> Why do we need to have the warning flags individually specified?  I
>
>
> because some flags aren't included in -Wall (pls read man gcc)
>
>
>> think it would be safer to use -Wall, then use -Wno-foo to only specify
>> warnings we don't want.  That way we don't have to manage the
>> differences in toolchains.
>>
>> Here's what Android NDK's gcc has to say:
>>
>> [CC] src/common/autobuf.c
>> cc1: error: unrecognized command line option "-Wdouble-promotion"
>> cc1: error: unrecognized command line option "-Wjump-misses-init"
>> cc1: error: unrecognized command line option "-Wtrampolines"
>>
>
> put an ifndef android around them ;-)
>
>
>>
>> (spam-protected) olsrd $
>>
>> /usr/local/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
>>  -Wdouble-promotion /tmp/test.c
>> cc1: error: unrecognized command line option "-Wdouble-promotion"
>>
>> .hc
>>
>
> --
> Ferry Huberts
>
>
> --
> Olsr-dev mailing list
> (spam-protected)
> https://lists.olsr.org/mailman/listinfo/olsr-dev



-- 
Steven Hawkings about cosmic inflation: "An increase of billions of
billions of percent in a tiny fraction of a second. Of course, that
was before the present government."




More information about the Olsr-dev mailing list