summaryrefslogtreecommitdiffstats
path: root/gnu/gcc
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2013-08-07 01:03:58 +0000
committerjsg <jsg@openbsd.org>2013-08-07 01:03:58 +0000
commitdd6081ec6b253c97e7202ea58b8ccc493dc34c6c (patch)
treeb7afe955c23ca9727e65e4e92db316e10e2c197c /gnu/gcc
parentCheck wether the required perl packages are installed. If not, (diff)
downloadwireguard-openbsd-dd6081ec6b253c97e7202ea58b8ccc493dc34c6c.tar.xz
wireguard-openbsd-dd6081ec6b253c97e7202ea58b8ccc493dc34c6c.zip
don't warn on missing newline at eof
matches the behaviour of gcc >= 4.3 and clang ok miod@
Diffstat (limited to 'gnu/gcc')
-rw-r--r--gnu/gcc/libcpp/lex.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gnu/gcc/libcpp/lex.c b/gnu/gcc/libcpp/lex.c
index df09bd6d3d6..54e1b0b3e0c 100644
--- a/gnu/gcc/libcpp/lex.c
+++ b/gnu/gcc/libcpp/lex.c
@@ -837,9 +837,6 @@ _cpp_get_fresh_line (cpp_reader *pfile)
{
/* Only warn once. */
buffer->next_line = buffer->rlimit;
- cpp_error_with_line (pfile, CPP_DL_PEDWARN, pfile->line_table->highest_line,
- CPP_BUF_COLUMN (buffer, buffer->cur),
- "no newline at end of file");
}
return_at_eof = buffer->return_at_eof;