Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 May 1998 08:33:52 -0700
From:      John Polstra <jdp@polstra.com>
To:        grog@lemis.com
Cc:        current@FreeBSD.ORG
Subject:   Re: /sys/device.h: warning: 1 trigraph(s) encountered
Message-ID:  <199805191533.IAA14158@austin.polstra.com>
In-Reply-To: <19980519132100.W427@freebie.lemis.com>
References:  <19980519132100.W427@freebie.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <19980519132100.W427@freebie.lemis.com>,
Greg Lehey  <grog@lemis.com> wrote:
> Anybody seen the message
> 
>   /sys/device.h: warning: 1 trigraph(s) encountered
> 
> in recent builds?  It comes from a comment:
> 
>       DV_TTY                  /* serial line interface (???) */
> 
> The ??? have the form of a trigraph, but for some reason the compiler
> complains about them though they're in a comment.

That's because the ISO C standard says that the compiler must map
trigraphs in phase 1 of the translation, but it doesn't eliminate
comments until phase 3.

John
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth

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



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