From: Arnaud Giersch Date: Wed, 18 Nov 2020 09:52:00 +0000 (+0100) Subject: Remove redundant "staitc" in anonymous namespaces. X-Git-Tag: v3.26~190 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/07387a96aed5a9b2bdf5d15c2199226207b7f659 Remove redundant "staitc" in anonymous namespaces. --- diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index ce10be9067..b8791b02fb 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -47,7 +47,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(python, "python"); namespace { -static std::string get_simgrid_version() +std::string get_simgrid_version() { int major; int minor; diff --git a/src/smpi/internals/smpi_shared.cpp b/src/smpi/internals/smpi_shared.cpp index bf23ea2df5..efd249d8c0 100644 --- a/src/smpi/internals/smpi_shared.cpp +++ b/src/smpi/internals/smpi_shared.cpp @@ -93,9 +93,9 @@ std::map allocs_metadata; std::map calls; #ifndef WIN32 -static int smpi_shared_malloc_bogusfile = -1; -static int smpi_shared_malloc_bogusfile_huge_page = -1; -static unsigned long smpi_shared_malloc_blocksize = 1UL << 20; +int smpi_shared_malloc_bogusfile = -1; +int smpi_shared_malloc_bogusfile_huge_page = -1; +unsigned long smpi_shared_malloc_blocksize = 1UL << 20; #endif } diff --git a/src/xbt/config.cpp b/src/xbt/config.cpp index 25feb0858f..416dfbb3ba 100644 --- a/src/xbt/config.cpp +++ b/src/xbt/config.cpp @@ -38,7 +38,7 @@ namespace config { namespace { -static bool parse_bool(const char* value) +bool parse_bool(const char* value) { for (const char* true_value : {"yes", "on", "true", "1"}) if (std::strcmp(true_value, value) == 0) @@ -49,7 +49,7 @@ static bool parse_bool(const char* value) throw std::range_error("not a boolean"); } -static double parse_double(const char* value) +double parse_double(const char* value) { char* end; errno = 0; @@ -64,7 +64,7 @@ static double parse_double(const char* value) return res; } -static long int parse_long(const char* value) +long int parse_long(const char* value) { char* end; errno = 0;