diff --git a/BUILD.bazel b/BUILD.bazel index 6ead44f5..830da067 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -97,6 +97,7 @@ test_sources = glob( [cc_test( name = src.replace("/", "_").replace(".cc", "").replace("src_", ""), srcs = [src], + copts = ["-fexceptions"], deps = [ ":common", GZ_ROOT + "common/testing", diff --git a/geospatial/BUILD.bazel b/geospatial/BUILD.bazel index 5ca2c4d9..317adb24 100644 --- a/geospatial/BUILD.bazel +++ b/geospatial/BUILD.bazel @@ -52,6 +52,10 @@ cc_library( name = "geospatial", srcs = sources, hdrs = public_headers, + copts = [ + "-Wno-unused-value", + "-fexceptions", + ], includes = ["include"], visibility = GZ_VISIBILITY, deps = [ diff --git a/graphics/BUILD.bazel b/graphics/BUILD.bazel index bd3bb1a0..a2285810 100644 --- a/graphics/BUILD.bazel +++ b/graphics/BUILD.bazel @@ -53,6 +53,10 @@ cc_library( name = "graphics", srcs = sources, hdrs = public_headers, + copts = [ + "-Wno-implicit-fallthrough", + "-Wno-unused-value", + ], includes = ["include"], visibility = GZ_VISIBILITY, deps = [ diff --git a/io/BUILD.bazel b/io/BUILD.bazel index 5e56e9b5..5a99ada6 100644 --- a/io/BUILD.bazel +++ b/io/BUILD.bazel @@ -52,6 +52,9 @@ cc_library( name = "io", srcs = sources, hdrs = public_headers, + copts = [ + "-fexceptions", + ], includes = ["include"], visibility = GZ_VISIBILITY, deps = [ diff --git a/profiler/BUILD.bazel b/profiler/BUILD.bazel index 832750e8..1bbd351e 100644 --- a/profiler/BUILD.bazel +++ b/profiler/BUILD.bazel @@ -107,6 +107,7 @@ cc_library( cc_test( name = "Profiler_Disabled_TEST", srcs = ["src/Profiler_Disabled_TEST.cc"], + copts = ["-Wno-macro-redefined"], defines = [ "GZ_PROFILER_ENABLE=0", "GZ_PROFILER_REMOTERY=0", diff --git a/testing/BUILD.bazel b/testing/BUILD.bazel index c81fac89..be0dd2c6 100644 --- a/testing/BUILD.bazel +++ b/testing/BUILD.bazel @@ -35,6 +35,7 @@ cc_library( "src/Utils.cc", ], hdrs = public_headers, + copts = ["-fexceptions"], includes = ["include"], visibility = ["//visibility:public"], deps = [