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) { |