mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Merge FreeBSD modifications into gcc 3.3.1-prerelease:
1.2 don't let gcc(1) hide warnings in system headers. Don't disable warning suppression unconditionally, but rather make in dependent on warn_system_headers flag, one should be able to use -Wno-system-headers flag if warnings from system headers are not desired.
This commit is contained in:
parent
6ff1e7b00d
commit
7a4310c825
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119271
@ -299,11 +299,13 @@ cb_file_change (pfile, new_map)
|
||||
}
|
||||
|
||||
update_header_times (new_map->to_file);
|
||||
#ifndef FREEBSD_NATIVE
|
||||
in_system_header = new_map->sysp != 0;
|
||||
#else /* FREEBSD_NATIVE */
|
||||
in_system_header = 0;
|
||||
#endif /* FREEBSD_NATIVE */
|
||||
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
|
||||
input_filename = new_map->to_file;
|
||||
lineno = to_line;
|
||||
map = new_map;
|
||||
|
Loading…
Reference in New Issue
Block a user