From 345123bb04cca7e57d757245567abfed0a12f94a Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Tue, 31 Jan 2017 00:43:09 -0500 Subject: [PATCH] clang-tidy readability-static-definition-in-anonymous-namespace --- .clang-tidy | 2 +- src/drivers/pwm_out_sim/pwm_out_sim.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 224ca265cc..3f78ec7514 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -188,7 +188,7 @@ Checks: 'clang-diagnostic-*,clang-analyzer-*,-*, readability-redundant-string-cstr, readability-redundant-string-init, ## TODO: fix code and enable # readability-simplify-boolean-expr, - #readability-static-definition-in-anonymous-namespace, + readability-static-definition-in-anonymous-namespace, readability-uniqueptr-delete-release, ' WarningsAsErrors: '*' diff --git a/src/drivers/pwm_out_sim/pwm_out_sim.cpp b/src/drivers/pwm_out_sim/pwm_out_sim.cpp index f8f2aee1b4..507fa165c2 100644 --- a/src/drivers/pwm_out_sim/pwm_out_sim.cpp +++ b/src/drivers/pwm_out_sim/pwm_out_sim.cpp @@ -862,7 +862,7 @@ enum PortMode { PORT2_16PWM, }; -static PortMode g_port_mode = PORT_MODE_UNDEFINED; +PortMode g_port_mode = PORT_MODE_UNDEFINED; int hil_new_mode(PortMode new_mode)