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

Henning Rogge (spam-protected)
Thu Jun 7 09:41:23 CEST 2012

On Wed, Jun 6, 2012 at 11:55 PM, Hans-Christoph Steiner
<(spam-protected)> wrote:
> Yes, that is intro to gcc warnings ;)  but some of these are pretty
> specific cases.  I've never heard of "trampolines" and reading the
> description, it sounds like a very specific practice that I have never
> seen in code nor heard discussed.  -Wdouble-promotion sounds useful on
> embedded CPUs.

I think they most likely cannot hurt...

> As for gotos, IMHO, its good practice to avoid them all together...

I use them in rare cases for error handling, similar to the linux
kernel... have X initializations, if one of them fails jump to the
same "initfailed:" point in the same function. That is the only
usecase I have ever considered for goto.

> Sorry I'm obsessing on this, one of my goals is to make stable,
> repeatable builds, so when it breaks, I want to know what the options
> are for making it more reliable.

The big question is why did the gcc-warning script failed.


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