This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

g++ 2.95.2 warning: ANSI C does not support the `L' length modifier


Hi,

the compiler warns (with the --pedantic flag on) about the `L' modifier
in the code below. Since the modifier is specified by ANSI C99 (see
7.19.6.1, p7) the warning should now be disabled.

#include <stdio.h>

int main ()
{
    printf ("%Lg\n", 0.0L);
}

$ g++ -c -Wall --pedantic test.cpp
test.cpp: In function `int main()':
test.cpp:7: warning: ANSI C does not support the `L' length modifier


Thanks
Martin


--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]