summaryrefslogtreecommitdiff
path: root/gnu/gcc
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2013-08-07 01:04:00 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2013-08-07 01:04:00 +0000
commit63da54dd0f48b32cdce901a5fed8d4f464e65cae (patch)
tree30e1544e7b05b2dfd94767cde68332d931f38a93 /gnu/gcc
parentc588b1b0c48e3740214047aa2d62aa05a08ba2aa (diff)
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;