diff options
author | kan <kan@FreeBSD.org> | 2003-11-07 03:09:40 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-11-07 03:09:40 +0000 |
commit | 6d5af2ef68ce8a8cd18eedbdd073412dff401d55 (patch) | |
tree | ae0071e42a134b4097422394489835f28e33ace5 /contrib/gcc | |
parent | a084c35ceb956547fd51afa69bbb1ddde34622dc (diff) | |
download | FreeBSD-src-6d5af2ef68ce8a8cd18eedbdd073412dff401d55.zip FreeBSD-src-6d5af2ef68ce8a8cd18eedbdd073412dff401d55.tar.gz |
Drop the revision 1.2 (don't let gcc(1) hide warnings in system headers)
and use stock version of this file now.
Diffstat (limited to 'contrib/gcc')
-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 dcfdc10..c852e31 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; |