diff options
author | pfg <pfg@FreeBSD.org> | 2013-12-18 14:53:36 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-12-18 14:53:36 +0000 |
commit | a90205432ca0c731faaa0bde8fa74bcd076de616 (patch) | |
tree | 0d7be4b28130528fcd5f0d0665a53f80951916b6 /contrib/gcclibs/libcpp/include | |
parent | 726ec729ea0c241980ef730d0959106fa49221fd (diff) | |
download | FreeBSD-src-a90205432ca0c731faaa0bde8fa74bcd076de616.zip FreeBSD-src-a90205432ca0c731faaa0bde8fa74bcd076de616.tar.gz |
gcc: add Apple compatible -Wnewline-eof
GCC 4.2 and previous have always warned about
"No newline at end of file".
Upstream GCC removed the warning completely but
Apple made it an optional warning. Adopt it for
compatibility with older GCC and clang.
While here, add comment to complement r258712.
Obtained from: Apple Inc. (Apple GCC 4.2 - 5531)
MFC after: 1 week
Diffstat (limited to 'contrib/gcclibs/libcpp/include')
-rw-r--r-- | contrib/gcclibs/libcpp/include/cpplib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/gcclibs/libcpp/include/cpplib.h b/contrib/gcclibs/libcpp/include/cpplib.h index 5acef41..ac596d6 100644 --- a/contrib/gcclibs/libcpp/include/cpplib.h +++ b/contrib/gcclibs/libcpp/include/cpplib.h @@ -320,6 +320,11 @@ struct cpp_options /* Nonzero means warn if there are any trigraphs. */ unsigned char warn_trigraphs; + /* APPLE LOCAL begin -Wnewline-eof 2001-08-23 --sts */ + /* Nonzero means warn if no newline at end of file. */ + unsigned char warn_newline_at_eof; + /* APPLE LOCAL end -Wnewline-eof 2001-08-23 --sts */ + /* Nonzero means warn about multicharacter charconsts. */ unsigned char warn_multichar; |