From 2f878973cdb605f01778a5bbd67f7459db14b7ff Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 8 Apr 2001 10:01:18 +0000 Subject: cpperror.c (print_location): Don't special case . * cpperror.c (print_location): Don't special case . (_cpp_begin_message): Handle WARNING_SYSHDR the same as WARNING, but we don't check if we're in system headers. * cpplib.h (enum error_type): WARNING_SYSHDR: New. * cpplib.c (do_warning): Warn in system headers. From-SVN: r41186 --- gcc/cpperror.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/cpperror.c') diff --git a/gcc/cpperror.c b/gcc/cpperror.c index 50bd907..60af7b5 100644 --- a/gcc/cpperror.c +++ b/gcc/cpperror.c @@ -124,8 +124,6 @@ print_location (pfile, filename, pos) if (filename == 0) filename = buffer->nominal_fname; - if (*filename == '\0') - filename = _(""); if (line == 0) fprintf (stderr, "%s: ", filename); @@ -159,6 +157,7 @@ _cpp_begin_message (pfile, code, file, pos) if (CPP_IN_SYSTEM_HEADER (pfile) && ! CPP_OPTION (pfile, warn_system_headers)) return 0; + case WARNING_SYSHDR: if (CPP_OPTION (pfile, warnings_are_errors) || (code == PEDWARN && CPP_OPTION (pfile, pedantic_errors))) { -- cgit v1.1