summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-10-27 19:57:50 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-10-27 19:57:50 +0000
commit4aa096a5a8537b6e28c4502d817e546b8b7fdd9b (patch)
tree37473619b5368e19d079f2675f575bdbfbbfe93f /src
parentfix warning and add comments about fixing code (diff)
downloadinkscape-4aa096a5a8537b6e28c4502d817e546b8b7fdd9b.tar.gz
inkscape-4aa096a5a8537b6e28c4502d817e546b8b7fdd9b.zip
"fix" some "unused parameter" warnings
(bzr r12736)
Diffstat (limited to 'src')
-rw-r--r--src/libcola/cola.h2
-rw-r--r--src/livarot/ShapeMisc.cpp2
-rw-r--r--src/marker.cpp4
-rw-r--r--src/mesh-context.cpp2
-rw-r--r--src/sp-flowtext.cpp2
-rw-r--r--src/sp-image.cpp4
6 files changed, 8 insertions, 8 deletions
diff --git a/src/libcola/cola.h b/src/libcola/cola.h
index e1f19994e..a4b05fd92 100644
--- a/src/libcola/cola.h
+++ b/src/libcola/cola.h
@@ -120,7 +120,7 @@ public:
maxiterations(maxiterations) { reset(); }
virtual ~TestConvergence() {}
- virtual bool operator()(double new_stress, double* X, double* Y) {
+ virtual bool operator()(double new_stress, double* /*X*/, double* /*Y*/) {
//std::cout<<"iteration="<<iterations<<", new_stress="<<new_stress<<std::endl;
if (old_stress == DBL_MAX) {
old_stress = new_stress;
diff --git a/src/livarot/ShapeMisc.cpp b/src/livarot/ShapeMisc.cpp
index 6fd40790f..e40915cba 100644
--- a/src/livarot/ShapeMisc.cpp
+++ b/src/livarot/ShapeMisc.cpp
@@ -327,7 +327,7 @@ Shape::ConvertToForme (Path * dest, int nbP, Path * *orig, bool splitWhenForced)
MakeSweepDestData (false);
}
void
-Shape::ConvertToFormeNested (Path * dest, int nbP, Path * *orig, int wildPath,int &nbNest,int *&nesting,int *&contStart,bool splitWhenForced)
+Shape::ConvertToFormeNested (Path * dest, int nbP, Path * *orig, int /*wildPath*/,int &nbNest,int *&nesting,int *&contStart,bool splitWhenForced)
{
nesting=NULL;
contStart=NULL;
diff --git a/src/marker.cpp b/src/marker.cpp
index b38138f8c..d145aadaf 100644
--- a/src/marker.cpp
+++ b/src/marker.cpp
@@ -503,11 +503,11 @@ void SPMarker::hide(unsigned int key) {
SPGroup::hide(key);
}
-Geom::OptRect SPMarker::bbox(Geom::Affine const &transform, SPItem::BBoxType type) const {
+Geom::OptRect SPMarker::bbox(Geom::Affine const &/*transform*/, SPItem::BBoxType /*type*/) const {
return Geom::OptRect();
}
-void SPMarker::print(SPPrintContext* ctx) {
+void SPMarker::print(SPPrintContext* /*ctx*/) {
}
diff --git a/src/mesh-context.cpp b/src/mesh-context.cpp
index ecd847fa4..142c3d2b1 100644
--- a/src/mesh-context.cpp
+++ b/src/mesh-context.cpp
@@ -104,7 +104,7 @@ const gchar *ms_handle_descr [] = {
N_("Mesh gradient <b>tensor</b>")
};
-void SPMeshContext::selection_changed(Inkscape::Selection* sel) {
+void SPMeshContext::selection_changed(Inkscape::Selection* /*sel*/) {
GrDrag *drag = this->_grdrag;
Inkscape::Selection *selection = sp_desktop_selection(this->desktop);
diff --git a/src/sp-flowtext.cpp b/src/sp-flowtext.cpp
index 0331df312..fee320e90 100644
--- a/src/sp-flowtext.cpp
+++ b/src/sp-flowtext.cpp
@@ -316,7 +316,7 @@ void SPFlowtext::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inksca
}
}
-Inkscape::DrawingItem* SPFlowtext::show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags) {
+Inkscape::DrawingItem* SPFlowtext::show(Inkscape::Drawing &drawing, unsigned int /*key*/, unsigned int /*flags*/) {
Inkscape::DrawingGroup *flowed = new Inkscape::DrawingGroup(drawing);
flowed->setPickChildren(false);
flowed->setStyle(this->style);
diff --git a/src/sp-image.cpp b/src/sp-image.cpp
index 1032b6d93..8f7a60ca6 100644
--- a/src/sp-image.cpp
+++ b/src/sp-image.cpp
@@ -555,7 +555,7 @@ Inkscape::XML::Node *SPImage::write(Inkscape::XML::Document *xml_doc, Inkscape::
return repr;
}
-Geom::OptRect SPImage::bbox(Geom::Affine const &transform, SPItem::BBoxType type) const {
+Geom::OptRect SPImage::bbox(Geom::Affine const &transform, SPItem::BBoxType /*type*/) const {
Geom::OptRect bbox;
if ((this->width.computed > 0.0) && (this->height.computed > 0.0)) {
@@ -638,7 +638,7 @@ gchar* SPImage::description() const {
return ret;
}
-Inkscape::DrawingItem* SPImage::show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags) {
+Inkscape::DrawingItem* SPImage::show(Inkscape::Drawing &drawing, unsigned int /*key*/, unsigned int /*flags*/) {
Inkscape::DrawingImage *ai = new Inkscape::DrawingImage(drawing);
sp_image_update_arenaitem(this, ai);