From a703813b4c7cc106ae75c2956d263d13862c8fbc Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 27 Feb 2023 17:56:21 +0100 Subject: [PATCH] Mark helper functions of `testutils.cpp` as static; they're not used elsewhere --- tests/testutils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/testutils.cpp b/tests/testutils.cpp index eaf954d..bae9c88 100644 --- a/tests/testutils.cpp +++ b/tests/testutils.cpp @@ -40,7 +40,7 @@ using namespace CppUtilities::EscapeCodes; namespace CppUtilities { /// \cond -bool fileSystemItemExists(const string &path) +static bool fileSystemItemExists(const string &path) { #ifdef PLATFORM_UNIX struct stat res; @@ -55,7 +55,7 @@ bool fileSystemItemExists(const string &path) #endif } -bool fileExists(const string &path) +static bool fileExists(const string &path) { #ifdef PLATFORM_UNIX struct stat res; @@ -70,7 +70,7 @@ bool fileExists(const string &path) #endif } -bool dirExists(const string &path) +static bool dirExists(const string &path) { #ifdef PLATFORM_UNIX struct stat res; @@ -85,7 +85,7 @@ bool dirExists(const string &path) #endif } -bool makeDir(const string &path) +static bool makeDir(const string &path) { #ifdef PLATFORM_UNIX return mkdir(path.data(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) == 0;