[Olsr-dev] Android NDK does not support -Wdouble-promotion, -Wjump-misses-init, and -Wtrampolines
Hans-Christoph Steiner
(spam-protected)
Wed Jun 6 22:35:41 CEST 2012
Why do we need to have the warning flags individually specified? I
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"
(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
More information about the Olsr-dev
mailing list