fix: Declare FALGS_no##name variables as static

This commit is contained in:
Andreas Schuh 2018-09-30 20:21:17 -07:00
parent c0b1add45f
commit 3e2e349307

View file

@ -478,7 +478,7 @@ extern GFLAGS_DLL_DECL const char kStrippedFlagHelp[];
static const type FLAGS_nono##name = value; \
/* We always want to export defined variables, dll or no */ \
GFLAGS_DLL_DEFINE_FLAG type FLAGS_##name = FLAGS_nono##name; \
type FLAGS_no##name = FLAGS_nono##name; \
static type FLAGS_no##name = FLAGS_nono##name; \
static GFLAGS_NAMESPACE::FlagRegisterer o_##name( \
#name, MAYBE_STRIPPED_HELP(help), __FILE__, \
&FLAGS_##name, &FLAGS_no##name); \