resolving backslash newline whisky tango foxtrot: a proposal

Per Bothner per@bothner.com
Mon Oct 31 21:59:00 GMT 2005


Joe Buck wrote:
> So you want the compiler to only consider '\\$" a continuation,

Not my preference, but that is my proposal, in the interest
of compatibility.

> but to have an unsilenceable warning about '\\ *$'?

Not unsilenceable - but on-by-default.  It could be silenced with
an explicit -Wno-comment.  (Or whatever mechanism we use to
control warnings.)

The point is that since it's silly and dangerous to depend on
trailing whitespace, and it's normally a mistake, we should
warn about it even without -Wall, but if people really want to
live dangerously they can turn it off.

> That would appear not to
> solve the problem of the customers who are wedded to their line art,
> that started this discussion in the first place.

They can use -Wno-comment.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/



More information about the Gcc mailing list