Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhmars:arch
gcc13
_service:download_url:0001-Ignore-Werror-if-GCC...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_url:0001-Ignore-Werror-if-GCC_IGNORE_WERROR-environment-varia.patch of Package gcc13
From 948a64e9e77164a7a16ffc2e66d81bb4d8130b13 Mon Sep 17 00:00:00 2001 From: William Douglas <william.douglas@intel.com> Date: Tue, 5 Apr 2022 10:12:58 -0700 Subject: [PATCH] Ignore -Werror if ${GCC_IGNORE_WERROR} envvar set -Werror should be set only by developers, not consumers of a project's source code. By providing this environment variable, the package build system can signal that -Werror should never be used without the need to patch each individual package build system. --- gcc/opts.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/opts.cc b/gcc/opts.cc index 1fc265e2f..97cb4caec 100644 --- a/gcc/opts.cc +++ b/gcc/opts.cc @@ -2665,7 +2665,10 @@ common_handle_option (struct gcc_options *opts, break; case OPT_Werror: - dc->warning_as_error_requested = value; + if (getenv("GCC_IGNORE_WERROR")) + dc->warning_as_error_requested = false; + else + dc->warning_as_error_requested = value; break; case OPT_Werror_: -- 2.35.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor