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

Unified Diff: third_party/cython/rules.gni

Issue 555343002: gn: make some warning flags match gyp more closely (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: breakpad:minidump_dump non-chromium_code Created 6 years, 3 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 | « build/config/compiler/BUILD.gn ('k') | tools/gn/bin/gyp_flag_compare.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/cython/rules.gni
diff --git a/third_party/cython/rules.gni b/third_party/cython/rules.gni
index 22a56c3cc9139586f4eefc8d3351d5c9d4f82ef9..fce3e4caf7c4d12997dd9bcc812486cc604c8b0e 100644
--- a/third_party/cython/rules.gni
+++ b/third_party/cython/rules.gni
@@ -52,6 +52,12 @@ template("python_binary_module") {
lib_dirs = exec_script(python_flags,
[ "--gn", "--library_dirs" ],
"list lines")
+ if (!is_win) {
+ # Generated code includes static utility functions that often go unused.
+ cflags = [
+ "-Wno-unused-function",
+ ]
+ }
}
shared_library(shared_library_name) {
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | tools/gn/bin/gyp_flag_compare.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698