From ad4dc3c4d328fef63678c3f4299ed87cc53d1b7b Mon Sep 17 00:00:00 2001 From: Rodrigo Queiro Date: Wed, 31 Jan 2018 15:19:36 +0100 Subject: [PATCH] Bazel: build with -Wno-sign-compare (#863) This avoids warnings for code like: ``` CHECK_EQ(local_to_cloud_trajectory_id_map_.count(local_trajectory_id), 0); ``` --- cartographer/BUILD.bazel | 1 + cartographer_grpc/BUILD.bazel | 1 + 2 files changed, 2 insertions(+) diff --git a/cartographer/BUILD.bazel b/cartographer/BUILD.bazel index a44d8a9..2cd30ee 100644 --- a/cartographer/BUILD.bazel +++ b/cartographer/BUILD.bazel @@ -64,6 +64,7 @@ cc_library( ] + glob([ "**/*.h", ]), + copts = ["-Wno-sign-compare"], includes = ["."], deps = [ ":cc_protos", diff --git a/cartographer_grpc/BUILD.bazel b/cartographer_grpc/BUILD.bazel index 5cf2b40..1c47b30 100644 --- a/cartographer_grpc/BUILD.bazel +++ b/cartographer_grpc/BUILD.bazel @@ -81,6 +81,7 @@ cc_library( hdrs = glob([ "**/*.h", ]), + copts = ["-Wno-sign-compare"], includes = ["."], deps = [ ":cc_protos",