• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: No new line at the end of file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No new line at the end of file


  • Subject: Re: No new line at the end of file
  • From: Scott Tooker <email@hidden>
  • Date: Mon, 18 Sep 2006 10:43:18 -0700


On Sep 17, 2006, at 10:41 PM, j o a r wrote:


On 18 sep 2006, at 06.02, Apparao wrote:

Why the compiler throws a warning "No newline at the end of file", if i don't provide new line after @end directive. What is the use of this warning?.

According to the GCC man page:

====
-Wnewline-eof
Warn about files missing a newline at the end of the file. (APPLE
ONLY)
====
Many options have long names starting with -f or with -W---for example,
-fforce-mem, -fstrength-reduce, -Wformat and so on. Most of these have
both positive and negative forms; the negative form of -ffoo would be
-fno-foo. This manual documents only one of these two forms, whichever
one is not the default.
====


As this warning is not enabled by default (as far as I can tell), you must have enabled it, or are running some non-standard configuration?

Interesting that it's an "(APPLE ONLY)" option. What does that mean? That you can only get the warning on Apple's GCC, or that Apple's GCC is the only one with an option to control the warning?

I believe Apple's GCC is the only version of GCC that allows you to turn off the warning.


Scott


j o a r


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >No new line at the end of file (From: Apparao <email@hidden>)
 >Re: No new line at the end of file (From: j o a r <email@hidden>)

  • Prev by Date: Attach to Process to debug Framework
  • Next by Date: Re: mapping warning messages to build settings?
  • Previous by thread: Re: No new line at the end of file
  • Next by thread: mapping warning messages to build settings?
  • Index(es):
    • Date
    • Thread