summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libnr/nr-object.h2
-rw-r--r--src/libnr/nr-rect.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libnr/nr-object.h b/src/libnr/nr-object.h
index f39814b0d..269130284 100644
--- a/src/libnr/nr-object.h
+++ b/src/libnr/nr-object.h
@@ -91,7 +91,7 @@ private:
NRObject(NRObject const &); // no copy
void operator=(NRObject const &); // no assign
- void *operator new(size_t size, void *placement) { return placement; }
+ void *operator new(size_t size, void *placement) { (void)size; return placement; }
};
struct NRObjectClass {
diff --git a/src/libnr/nr-rect.h b/src/libnr/nr-rect.h
index 439538e29..fc4d617df 100644
--- a/src/libnr/nr-rect.h
+++ b/src/libnr/nr-rect.h
@@ -254,7 +254,7 @@ struct NRMatrix;
struct NRRect {
NRRect() {}
NRRect(NR::Coord xmin, NR::Coord ymin, NR::Coord xmax, NR::Coord ymax)
- : x0(xmin), y0(ymin), x1(xmin), y1(ymin)
+ : x0(xmin), y0(ymin), x1(xmax), y1(ymax)
{}
explicit NRRect(NR::Rect const &rect);
explicit NRRect(NR::Maybe<NR::Rect> const &rect);