diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/CMakeLists.txt | 2 | ||||
-rw-r--r-- | core/trygvis/antlr.h (renamed from core/include-priv/trygvis/antlr.h) | 0 | ||||
-rw-r--r-- | core/trygvis/string_utils.h (renamed from core/include-priv/trygvis/string_utils.h) | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index cbf8e78..75d2383 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -16,7 +16,7 @@ get_target_property(KicadNet_includes KicadNet INCLUDE_DIRECTORIES) target_include_directories(kicad-utils-core PUBLIC include - PRIVATE include-priv ${KicadNet_includes}) + PRIVATE ${KicadNet_includes}) target_link_libraries(kicad-utils-core Antlr4::antlr4_shared) diff --git a/core/include-priv/trygvis/antlr.h b/core/trygvis/antlr.h index f5656ea..f5656ea 100644 --- a/core/include-priv/trygvis/antlr.h +++ b/core/trygvis/antlr.h diff --git a/core/include-priv/trygvis/string_utils.h b/core/trygvis/string_utils.h index 9902a3f..2f2a7a5 100644 --- a/core/include-priv/trygvis/string_utils.h +++ b/core/trygvis/string_utils.h @@ -8,6 +8,7 @@ namespace string_utils { /** * Check if a starts with b. */ +__attribute__((unused)) static bool startsWith(const std::string &a, const std::string &b) { return b.length() <= a.length() && a.compare(0, b.length(), b) == 0; } @@ -15,6 +16,7 @@ static bool startsWith(const std::string &a, const std::string &b) { /** * Check if a ends with b. */ +__attribute__((unused)) static bool endsWith(const std::string &a, const std::string &b) { return b.length() <= a.length() && a.compare(a.length() - b.length(), b.length(), b) == 0; } |