From 3627762b9048c58dac1e8bfa4cd4ea2975afd2cf Mon Sep 17 00:00:00 2001 From: Jeremy Nimmer Date: Mon, 6 Aug 2018 09:35:07 -0400 Subject: [PATCH] cc: Enable Werror=attributes --- tools/skylark/drake_cc.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/skylark/drake_cc.bzl b/tools/skylark/drake_cc.bzl index 0c4fb79bf067..2d7391ad47ec 100644 --- a/tools/skylark/drake_cc.bzl +++ b/tools/skylark/drake_cc.bzl @@ -9,6 +9,7 @@ load("@cc//:compiler.bzl", "COMPILER_ID") # building with any compiler. CXX_FLAGS = [ "-Werror=all", + "-Werror=attributes", "-Werror=deprecated", "-Werror=deprecated-declarations", "-Werror=ignored-qualifiers",