summaryrefslogtreecommitdiffstats
path: root/src/libcola/shortest_paths.cpp
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-11-20 22:55:55 +0000
committerCampbell Barton <ideasman42@gmail.com>2012-11-20 22:55:55 +0000
commitd463240d8fd961d45b47ba96e0d93c37e1719da7 (patch)
tree25be35855525cba941ff28f0d1ea7684dc1a258c /src/libcola/shortest_paths.cpp
parentFix for #970355, radial gradient using object bounding box. (diff)
downloadinkscape-d463240d8fd961d45b47ba96e0d93c37e1719da7.tar.gz
inkscape-d463240d8fd961d45b47ba96e0d93c37e1719da7.zip
code cleanup: quiet warnings with gcc.
(bzr r11888)
Diffstat (limited to 'src/libcola/shortest_paths.cpp')
-rw-r--r--src/libcola/shortest_paths.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcola/shortest_paths.cpp b/src/libcola/shortest_paths.cpp
index ebc2c93de..514721fb5 100644
--- a/src/libcola/shortest_paths.cpp
+++ b/src/libcola/shortest_paths.cpp
@@ -33,7 +33,7 @@ void floyd_warshall(
}
}
}
-void dijkstra_init(Node* vs, vector<Edge>& es, double* eweights) {
+static void dijkstra_init(Node* vs, vector<Edge>& es, double* eweights) {
for(unsigned i=0;i<es.size();i++) {
unsigned u=es[i].first, v=es[i].second;
vs[u].neighbours.push_back(&vs[v]);
@@ -42,7 +42,7 @@ void dijkstra_init(Node* vs, vector<Edge>& es, double* eweights) {
vs[v].nweights.push_back(eweights[i]);
}
}
-void dijkstra(
+static void dijkstra(
unsigned s,
unsigned n,
Node* vs,