diff --git a/pybind11-BUILD.bazel b/pybind11-BUILD.bazel index 12d45f4..a9b7c02 100644 --- a/pybind11-BUILD.bazel +++ b/pybind11-BUILD.bazel @@ -18,12 +18,7 @@ cc_library( ), copts = select({ ":msvc_compiler": [], - "//conditions:default": [ - "-fexceptions", - # Useless warnings - "-Xclang-only=-Wno-pragma-once-outside-header", - "-Xgcc-only=-Wno-error", # no way to just disable the pragma-once warning in gcc - ], + "//conditions:default": ["-fexceptions"], }), includes = ["include"], visibility = ["//visibility:public"],