From: Eric Bambach <eric@cisu.net>
To: Shriramana Sharma <samjnaa@gmail.com>
Cc: Linux C Programming List <linux-c-programming@vger.kernel.org>
Subject: Re: why is "no newline at end of file" a warning?
Date: Thu, 28 Jun 2007 23:52:13 -0500 [thread overview]
Message-ID: <200706282352.13703.eric@cisu.net> (raw)
In-Reply-To: <46844620.4050902@gmail.com>
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
prev parent reply other threads:[~2007-06-29 4:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200706282352.13703.eric@cisu.net \
--to=eric@cisu.net \
--cc=linux-c-programming@vger.kernel.org \
--cc=samjnaa@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.