On Sat, Oct 23, 2010 at 11:40 AM, Landry Breuil <lan...@rhaalovely.net> wrote: > Hi, > > i'm porting an app which uses: > static gdouble line_speed = NAN; > static gdouble line_course = NAN; > > which yields: > gpspoint.c:84: error: initializer element is not constant > gpspoint.c:85: error: initializer element is not constant > > Kirill Bychkov pointed out > (http://marc.info/?l=openbsd-ports&m=128645629406557&w=2) > to me that netbsd had the following related pr which affects us too: > http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=40695 > > Can we consider using the same libc fix ? >
i'm not entirely sure about the linker warning, but it looks fine otherwise. > is the initialization using: > static gdouble line_speed = __builtin_nanf(""); > static gdouble line_course = __builtin_nanf(""); > > a valid temporary fix for the port ? > imo, yes. > Thx, > Landry