summaryrefslogtreecommitdiffstats
path: root/src/svg
diff options
context:
space:
mode:
Diffstat (limited to 'src/svg')
-rw-r--r--src/svg/css-ostringstream-test.h4
-rw-r--r--src/svg/svg-color-test.h3
2 files changed, 3 insertions, 4 deletions
diff --git a/src/svg/css-ostringstream-test.h b/src/svg/css-ostringstream-test.h
index ffe15ee9a..5656baf5c 100644
--- a/src/svg/css-ostringstream-test.h
+++ b/src/svg/css-ostringstream-test.h
@@ -2,8 +2,8 @@
#include "svg/css-ostringstream.h"
// dummy functions to prevent link errors
-int sp_main_gui(int argc, char const **argv) { return 0; }
-int sp_main_console(int argc, char const **argv) { return 0; }
+int sp_main_gui(int /*argc*/, char const **/*argv*/) { return 0; }
+int sp_main_console(int /*argc*/, char const **/*argv*/) { return 0; }
template<typename T>
static void
diff --git a/src/svg/svg-color-test.h b/src/svg/svg-color-test.h
index d249c675c..49af63a5d 100644
--- a/src/svg/svg-color-test.h
+++ b/src/svg/svg-color-test.h
@@ -52,9 +52,8 @@ public:
}
/* And a few completely random ones. */
- using std::rand;
for (unsigned i = 500; i--;) { /* Arbitrary number of iterations. */
- unsigned const rgb24 = (rand() >> 4) & 0xffffff;
+ unsigned const rgb24 = (std::rand() >> 4) & 0xffffff;
check_rgb24(rgb24);
}
}