Re: why is "no newline at end of file" a warning?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Thanks,

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux