aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-08-05 11:09:53 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2016-08-05 11:09:53 +0200
commitff87ea9045a6e0979311ae7b25055d6b53b0a13d (patch)
tree8f36e478d37caf819919bc02f55816df4a677607 /core
parentbfeeac6e4889d1e9a1083b3c7efc59652981b168 (diff)
downloadkicad-utils-ff87ea9045a6e0979311ae7b25055d6b53b0a13d.tar.gz
kicad-utils-ff87ea9045a6e0979311ae7b25055d6b53b0a13d.tar.bz2
kicad-utils-ff87ea9045a6e0979311ae7b25055d6b53b0a13d.tar.xz
kicad-utils-ff87ea9045a6e0979311ae7b25055d6b53b0a13d.zip
o Dropping the native library code, we're all Python now!
Diffstat (limited to 'core')
-rw-r--r--core/CMakeLists.txt2
-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;
}