Skip site navigation (1)Skip section navigation (2)
Date:      14 Jun 2001 13:50:53 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Sheldon Hearn <sheldonh@starjuice.net>, Jens Schweikhardt <schweikh@schweikhardt.net>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/stdio printf.3
Message-ID:  <xzpg0d3fffm.fsf@flood.ping.uio.no>
In-Reply-To: <Pine.BSF.4.21.0106141040580.71865-100000@besplex.bde.org>
References:  <Pine.BSF.4.21.0106141040580.71865-100000@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans <bde@zeta.org.au> writes:
> -pedantic causes warnings about "long long", not about %ll.

Yes it does.

>                                                              These warnings
> are correct.  "long long doesn't exist in ISO C (C90).  When gcc supports
> C99, it should have separate -iso^Wansi and -pedantic flags for C90 and C99.
> Of course, C99 features shouldn't be used until it becomes unnecessary to
> support C90 compilers.  The "long long" misfeature should never be used.

Gcc has a command-line option (-std) for selecting the standard to
apply, and claims to support ISO C99, but incorrectly prints these
warnings even when ISO C99 is selected.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpg0d3fffm.fsf>