From 3e2e349307b7d0c093d719f638ccbff585329947 Mon Sep 17 00:00:00 2001 From: Andreas Schuh Date: Sun, 30 Sep 2018 20:21:17 -0700 Subject: [PATCH] fix: Declare FALGS_no##name variables as static --- src/gflags.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gflags.h.in b/src/gflags.h.in index 82e640f..1f1d907 100644 --- a/src/gflags.h.in +++ b/src/gflags.h.in @@ -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); \