Patch to remove pedantic ANSI warning for long long format when -Wno-long-long is supplied
Nathan Sidwell
nathan@acm.org
Sun Feb 28 23:30:00 GMT 1999
Martin v. Loewis wrote:
>
> > I got tired of looking at
> > "warning: ANSI C does not support the `ll' length modifier"
>
> So did I. Therefore, I put
>
> __extension__ typedef long long verylargenumber;
Good idea, but it doesn't help with
printf("... %lld...", verylargething);
which is what Bill's patch does, or with
verylargething = 94574ll;
which is what a patch of mine fixed.
> Indeed it would. Given that there is already a usable solution makes a
> new command line option less attractive, though.
-Wno-long-long is not a new command line argument, it was put in ages ago, and
inhibited the warning on
long long verylargething;
Its implementation was incomplete with regards to the 'll' modifiers though.
Yes it's not pretty, but it's been there from the 2.8.1 days or earlier.
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
You can up the bandwidth, but you can't up the speed of light
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk
More information about the Gcc-bugs
mailing list