From cb808c583de59ea568fd240144cd9db07272f45e Mon Sep 17 00:00:00 2001 From: Nicholas Guriev Date: Thu, 12 Nov 2020 08:59:35 -0500 Subject: Specify reason of -Winvalid-pch warning gcc/c-family PR pch/86674 * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches. libcpp PR pch/86674 * files.c (_cpp_find_file): Use CPP_DL_NOTE not CPP_DL_ERROR in call to cpp_error. --- libcpp/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcpp/files.c') diff --git a/libcpp/files.c b/libcpp/files.c index 5af4136..d73177a 100644 --- a/libcpp/files.c +++ b/libcpp/files.c @@ -571,7 +571,7 @@ _cpp_find_file (cpp_reader *pfile, const char *fname, cpp_dir *start_dir, "one or more PCH files were found," " but they were invalid"); if (!cpp_get_options (pfile)->warn_invalid_pch) - cpp_error (pfile, CPP_DL_ERROR, + cpp_error (pfile, CPP_DL_NOTE, "use -Winvalid-pch for more information"); } -- cgit v1.1