diff options
| author | Campbell Barton <ideasman42@gmail.com> | 2012-11-20 22:55:55 +0000 |
|---|---|---|
| committer | Campbell Barton <ideasman42@gmail.com> | 2012-11-20 22:55:55 +0000 |
| commit | d463240d8fd961d45b47ba96e0d93c37e1719da7 (patch) | |
| tree | 25be35855525cba941ff28f0d1ea7684dc1a258c /src/libvpsc/generate-constraints.cpp | |
| parent | Fix for #970355, radial gradient using object bounding box. (diff) | |
| download | inkscape-d463240d8fd961d45b47ba96e0d93c37e1719da7.tar.gz inkscape-d463240d8fd961d45b47ba96e0d93c37e1719da7.zip | |
code cleanup: quiet warnings with gcc.
(bzr r11888)
Diffstat (limited to 'src/libvpsc/generate-constraints.cpp')
| -rw-r--r-- | src/libvpsc/generate-constraints.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libvpsc/generate-constraints.cpp b/src/libvpsc/generate-constraints.cpp index 8dd2d9331..fabe5217f 100644 --- a/src/libvpsc/generate-constraints.cpp +++ b/src/libvpsc/generate-constraints.cpp @@ -105,7 +105,7 @@ bool CmpNodePos::operator() (const Node* u, const Node* v) const { */ } -NodeSet* getLeftNeighbours(NodeSet &scanline,Node *v) { +static NodeSet* getLeftNeighbours(NodeSet &scanline,Node *v) { NodeSet *leftv = new NodeSet; NodeSet::iterator i=scanline.find(v); while(i--!=scanline.begin()) { @@ -120,7 +120,7 @@ NodeSet* getLeftNeighbours(NodeSet &scanline,Node *v) { } return leftv; } -NodeSet* getRightNeighbours(NodeSet &scanline,Node *v) { +static NodeSet* getRightNeighbours(NodeSet &scanline,Node *v) { NodeSet *rightv = new NodeSet; NodeSet::iterator i=scanline.find(v); for(++i;i!=scanline.end(); ++i) { @@ -144,7 +144,7 @@ struct Event { Event(EventType t, Node *v, double p) : type(t),v(v),pos(p) {}; }; Event **events; -int compare_events(const void *a, const void *b) { +static int compare_events(const void *a, const void *b) { Event *ea=*(Event**)a; Event *eb=*(Event**)b; if(ea->v->r==eb->v->r) { |
