clang-tidy: remove pointless static

Found with readability-static-definition-in-anonymous-namespace

Signed-off-by: Rosen Penev <rosenp@gmail.com>
main
Rosen Penev 4 years ago committed by Luis Díaz Más
parent bd6a996181
commit 5a9c29303e

@ -1890,14 +1890,14 @@ namespace {
#endif #endif
#else #else
#if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP) #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
static pthread_mutex_t cs = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; pthread_mutex_t cs = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
#else #else
static pthread_mutex_t cs = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t cs = PTHREAD_MUTEX_INITIALIZER;
#endif #endif
#endif #endif
#endif #endif
static std::string temporaryPath() std::string temporaryPath()
{ {
static int count = 0; static int count = 0;

@ -50,12 +50,12 @@
namespace { namespace {
//! List of all command identifiers and corresponding strings //! List of all command identifiers and corresponding strings
static const CmdIdAndString cmdIdAndString[] = { const CmdIdAndString cmdIdAndString[] = {
{ add, "add" }, { add, "add" },
{ set, "set" }, { set, "set" },
{ del, "del" }, { del, "del" },
{ reg, "reg" }, { reg, "reg" },
{ invalidCmdId, "invalidCmd" } // End of list marker { invalidCmdId, "invalidCmd" }, // End of list marker
}; };
// Return a command Id for a command string // Return a command Id for a command string

@ -922,7 +922,7 @@ namespace {
return dest; return dest;
} }
static const char encodeBase64Table[64 + 1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; const char encodeBase64Table[64 + 1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
DataBuf decodeBase64(const std::string& src) DataBuf decodeBase64(const std::string& src)
{ {

Loading…
Cancel
Save