http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46908
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2010-12-12 17:32:26 UTC --- Use -Wall: test.c:18: warning: format ‘%f’ expects type ‘double’, but argument 2 has type ‘long double’ which means that %f is not for long double, you should use %Lf and it will work.