* why is "no newline at end of file" a warning?
@ 2007-06-28 23:37 Shriramana Sharma
2007-06-29 4:52 ` Eric Bambach
0 siblings, 1 reply; 2+ messages in thread
From: Shriramana Sharma @ 2007-06-28 23:37 UTC (permalink / raw)
To: Linux C Programming List
Hello.
gcc (and so many other *nix utilities) often give a warning (sometimes
even an error) if there is "no newline at end of file". I would like to
know why this is such a serious issue that it deserves to be called a
warning (or an error).
Shriramana Sharma.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: why is "no newline at end of file" a warning?
2007-06-28 23:37 why is "no newline at end of file" a warning? Shriramana Sharma
@ 2007-06-29 4:52 ` Eric Bambach
0 siblings, 0 replies; 2+ messages in thread
From: Eric Bambach @ 2007-06-29 4:52 UTC (permalink / raw)
To: Shriramana Sharma; +Cc: Linux C Programming List
On Thursday 28 June 2007 18:37, Shriramana Sharma wrote:
> Hello.
>
> gcc (and so many other *nix utilities) often give a warning (sometimes
> even an error) if there is "no newline at end of file". I would like to
> know why this is such a serious issue that it deserves to be called a
> warning (or an error).
I think it warns because a file with no newline could have possibly been
truncated. Or at least thats what I heard somewhere someplace a while ago :)
> Shriramana Sharma.
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-c-programming" in the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Thanks,
Eric
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-29 4:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-28 23:37 why is "no newline at end of file" a warning? Shriramana Sharma
2007-06-29 4:52 ` Eric Bambach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).