diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2003-11-07 03:09:40 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2003-11-07 03:09:40 +0000 |
commit | e9c9d25f921fc4fd8b2902b046d0fb2678fdae04 (patch) | |
tree | ae0071e42a134b4097422394489835f28e33ace5 /contrib/gcc/c-lex.c | |
parent | 3697be559004a3d88df22c05d3773458e51fa2c9 (diff) | |
download | src-e9c9d25f921fc4fd8b2902b046d0fb2678fdae04.tar.gz src-e9c9d25f921fc4fd8b2902b046d0fb2678fdae04.zip |
Drop the revision 1.2 (don't let gcc(1) hide warnings in system headers)
and use stock version of this file now.
Notes
Notes:
svn path=/head/; revision=122191
Diffstat (limited to 'contrib/gcc/c-lex.c')
-rw-r--r-- | contrib/gcc/c-lex.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/contrib/gcc/c-lex.c b/contrib/gcc/c-lex.c index dcfdc107e361..c852e311cb99 100644 --- a/contrib/gcc/c-lex.c +++ b/contrib/gcc/c-lex.c @@ -19,8 +19,6 @@ along with GCC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $FreeBSD$ */ - #include "config.h" #include "system.h" @@ -247,8 +245,11 @@ static void cb_line_change (pfile, token, parsing_args) cpp_reader *pfile ATTRIBUTE_UNUSED; const cpp_token *token; - int parsing_args ATTRIBUTE_UNUSED; + int parsing_args; { + if (token->type == CPP_EOF || parsing_args) + return; + src_lineno = SOURCE_LINE (map, token->line); } @@ -299,13 +300,7 @@ cb_file_change (pfile, new_map) } update_header_times (new_map->to_file); - in_system_header = (warn_system_headers && new_map->sysp != 0); -#ifdef FREEBSD_NATIVE - /* Correct logic should be: if warn_system_headers is set, no - header file should be considered system, so that no warnings - will be suppressed. */ - if (warn_system_headers) in_system_header = 0; -#endif + in_system_header = new_map->sysp != 0; input_filename = new_map->to_file; lineno = to_line; map = new_map; |