99#include < iostream>
1010#include < vector>
1111
12- static bool copyFolder (const char * source, const char * destination) {
12+ [[gnu::unused]] static bool copyFolder (const char * source, const char * destination) {
1313 DIR* dir = opendir (source);
1414 if (dir == nullptr ) {
1515 printf (" Failed to open source directory\n " );
@@ -75,7 +75,7 @@ static bool copyFolder(const char* source, const char* destination) {
7575 return true ;
7676}
7777
78- static std::string replaceLastPathComponent (const std::string& path, const std::string& newComponent) {
78+ [[gnu::unused]] static std::string replaceLastPathComponent (const std::string& path, const std::string& newComponent) {
7979 size_t lastSlashIndex = path.find_last_of (' /' );
8080 if (lastSlashIndex != std::string::npos) {
8181 std::string newPath = path.substr (0 , lastSlashIndex + 1 ) + newComponent;
@@ -85,7 +85,7 @@ static std::string replaceLastPathComponent(const std::string& path, const std::
8585}
8686
8787// Helper function to get the last path component
88- static std::string getLastPathComponent (const std::string& path) {
88+ [[gnu::unused]] static std::string getLastPathComponent (const std::string& path) {
8989 size_t lastSlashIndex = path.find_last_of (' /' );
9090 if (lastSlashIndex != std::string::npos) {
9191 return path.substr (lastSlashIndex + 1 );
@@ -94,7 +94,7 @@ static std::string getLastPathComponent(const std::string& path) {
9494}
9595
9696// Helper function to replace the first path component with a new component
97- static std::string replaceFirstPathComponent (const std::string& path, const std::string& destinationPath) {
97+ [[gnu::unused]] static std::string replaceFirstPathComponent (const std::string& path, const std::string& destinationPath) {
9898 std::string fileName = getLastPathComponent (path);
9999 std::string newPath = destinationPath + " /" + fileName;
100100 return newPath;
0 commit comments