Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/yasm/BUILD.gn

Issue 2783763002: Gcc: Suppress warnings in third_party (Closed)
Patch Set: add is_linux Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libxml/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/yasm/BUILD.gn
diff --git a/third_party/yasm/BUILD.gn b/third_party/yasm/BUILD.gn
index 6f49a02a77f86866e355c32977bd24efeae231a6..adcb833184e15a75c21fb4bee53f149db550bf0b 100644
--- a/third_party/yasm/BUILD.gn
+++ b/third_party/yasm/BUILD.gn
@@ -202,6 +202,11 @@ if (current_toolchain == host_toolchain) {
# reg3264type in x86expr.c is unused.
"-Wno-unused-local-typedef",
]
+ } else if (is_linux) {
+ cflags = [
+ # dosexe_objfmt_output ignores the return value of ftruncate.
+ "-Wno-unused-result",
+ ]
}
}
« no previous file with comments | « third_party/libxml/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698