From 2e227c3daae2ea8899f49858a23f3d318ea39b57 Mon Sep 17 00:00:00 2001 From: Trevor Hickey Date: Wed, 15 Jan 2020 13:43:35 -0500 Subject: [PATCH] remove attribute where it does not apply ``` gflags.h(226): warning: attribute "visibility" does not apply here ``` The visibility attribute applies to symbols like functions and variables. A definition of an enumeration type that doesn't contain a variable name doesn't create any symbols. --- 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 7b218b9..a335308 100644 --- a/src/gflags.h.in +++ b/src/gflags.h.in @@ -223,7 +223,7 @@ extern GFLAGS_DLL_DECL bool GetCommandLineFlagInfo(const char* name, CommandLine // if (GetCommandLineFlagInfoOrDie("foo").is_default) ... extern GFLAGS_DLL_DECL CommandLineFlagInfo GetCommandLineFlagInfoOrDie(const char* name); -enum GFLAGS_DLL_DECL FlagSettingMode { +enum FlagSettingMode { // update the flag's value (can call this multiple times). SET_FLAGS_VALUE, // update the flag's value, but *only if* it has not yet been updated