Quiet down compilation of f2c'ed code
The generated code has a whole lot of warnings with the roborio
compiler. This at least cuts down on the obviously boring ones.
Change-Id: I18ab2795229158c90d6e0b7b0970a566fbcae323
diff --git a/debian/slycot.BUILD b/debian/slycot.BUILD
index 368b87d..7463173 100644
--- a/debian/slycot.BUILD
+++ b/debian/slycot.BUILD
@@ -2,6 +2,7 @@
licenses(["restricted"])
load("@//tools/build_rules:fortran.bzl", "f2c_library")
+load("@//tools/build_rules:select.bzl", "compiler_select")
# We can't create _wrapper.so in the slycot folder, and can't move it.
# The best way I found to do this is to modify _wrapper.pyf to instead generate
@@ -135,7 +136,13 @@
# This gets triggered because it doesn't realize xerbla doesn't return.
# TODO(Brian): Try and get __attribute__((noreturn)) on xerbla somehow.
"-Wno-uninitialized",
- ],
+ ] + compiler_select({
+ "clang": [
+ ],
+ "gcc": [
+ "-Wno-discarded-qualifiers",
+ ],
+ }),
visibility = ["//visibility:public"],
deps = [
"@clapack",