public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] f43: - Suppress linker_messages Warnings in Rust and other warnings
@ 2026-08-12 21:12 Than Ngo
0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-08-12 21:12 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/chromium
Branch : f43
Commit : 1530553430fcfc2c26aa7e69a9e924fb61ecb2a8
Author : Than Ngo <than@redhat.com>
Date : 2026-08-12T23:09:17+02:00
Stats : +35/-13 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/chromium/c/1530553430fcfc2c26aa7e69a9e924fb61ecb2a8?branch=f43
Log:
- Suppress linker_messages Warnings in Rust and other warnings
---
diff --git a/chromium-151-clang++-unknown-argument.patch b/chromium-151-clang++-unknown-argument.patch
index 9484481..9c3905c 100644
--- a/chromium-151-clang++-unknown-argument.patch
+++ b/chromium-151-clang++-unknown-argument.patch
@@ -1,6 +1,10 @@
-diff -up chromium-151.0.7922.47/build/config/compiler/BUILD.gn.me chromium-151.0.7922.47/build/config/compiler/BUILD.gn
---- chromium-151.0.7922.47/build/config/compiler/BUILD.gn.me 2026-07-23 11:54:01.269128807 +0200
-+++ chromium-151.0.7922.47/build/config/compiler/BUILD.gn 2026-07-23 11:58:32.694584084 +0200
+Suppress warnings:
+ clang diag: warning: unknown warning option '-Wno-unused-but-set-global'; did you mean '-Wno-unused-but-set-variable'? [-Wunknown-warning-option]
+ clang diag: warning: unknown warning option '-Wno-unsafe-buffer-usage-in-static-sized-array'; did you mean '-Wno-unsafe-buffer-usage-in-container'? [-Wunknown-warning-option]
+
+diff -up chromium-151.0.7922.137/build/config/compiler/BUILD.gn.clang++-unknown-argument chromium-151.0.7922.137/build/config/compiler/BUILD.gn
+--- chromium-151.0.7922.137/build/config/compiler/BUILD.gn.clang++-unknown-argument 2026-08-12 22:51:25.005846860 +0200
++++ chromium-151.0.7922.137/build/config/compiler/BUILD.gn 2026-08-12 22:57:40.710373048 +0200
@@ -576,14 +576,6 @@ config("compiler") {
if (is_clang) {
# Flags for diagnostics.
@@ -26,18 +30,33 @@ diff -up chromium-151.0.7922.47/build/config/compiler/BUILD.gn.me chromium-151.0
# TODO(hans): Remove this once Clang generates better optimized debug info
# by default. https://crbug.com/765793
-@@ -1925,8 +1914,6 @@ config("default_warnings") {
- # TODO(crbug.com/40284799): Fix and re-enable.
- "-Wno-thread-safety-reference-return",
+@@ -1563,12 +1552,7 @@ config("clang_warning_suppression") {
+ ubsan_hardening("c_array_bounds") {
+ sanitizer = "array-bounds"
+ condition = !(is_asan && target_cpu == "x86") && !is_wasm
+-
+- # Because we've enabled array-bounds sanitizing we also want to suppress
+- # the related warning about "unsafe-buffer-usage-in-static-sized-array",
+- # since we know that the array bounds sanitizing will catch any out-of-
+- # bounds accesses.
+- cflags = [ "-Wno-unsafe-buffer-usage-in-static-sized-array" ]
++ cflags = [ ]
+ }
-- # TODO(crbug.com/376641662): Fix and re-enable.
-- "-Wno-nontrivial-memcall",
- ]
+ # Enable UBSan subset to ensure we always hit `return` statement in non-void
+@@ -1917,9 +1901,6 @@ config("default_warnings") {
+ cflags += [
+ # TODO(crbug.com/432275627): Fix and re-enable.
+ "-Wno-uninitialized-const-pointer",
+-
+- # TODO(crbug.com/495753203): Fix and re-enable.
+- "-Wno-unused-but-set-global",
+ ]
+ }
- if (!is_wasm) {
-diff -up chromium-151.0.7922.47/build/config/sanitizers/sanitizers.gni.me chromium-151.0.7922.47/build/config/sanitizers/sanitizers.gni
---- chromium-151.0.7922.47/build/config/sanitizers/sanitizers.gni.me 2026-07-23 11:56:11.855123098 +0200
-+++ chromium-151.0.7922.47/build/config/sanitizers/sanitizers.gni 2026-07-23 11:56:26.260247113 +0200
+diff -up chromium-151.0.7922.137/build/config/sanitizers/sanitizers.gni.clang++-unknown-argument chromium-151.0.7922.137/build/config/sanitizers/sanitizers.gni
+--- chromium-151.0.7922.137/build/config/sanitizers/sanitizers.gni.clang++-unknown-argument 2026-08-11 00:27:27.000000000 +0200
++++ chromium-151.0.7922.137/build/config/sanitizers/sanitizers.gni 2026-08-12 22:51:25.007516573 +0200
@@ -540,7 +540,6 @@ template("ubsan_hardening") {
# be usable even in release builds, i.e. as widely as possible.
# It's important not to have full-on UBSan workarounds activate
diff --git a/chromium.spec b/chromium.spec
index 061e0df..ce55ce7 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -1354,6 +1354,9 @@ export CFLAGS
export CXXFLAGS
export LDFLAGS
+# Suppress linker_messages Warnings in Rust
+export RUSTFLAGS="-A linker_messages"
+
# need for error: the option `Z` is only accepted on the nightly compiler
export RUSTC_BOOTSTRAP=1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-12 21:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-12 21:12 [rpms/chromium] f43: - Suppress linker_messages Warnings in Rust and other warnings Than Ngo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox