summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sord/sordmm.hpp8
-rw-r--r--src/sordmm_test.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp
index ee33289..586805d 100644
--- a/sord/sordmm.hpp
+++ b/sord/sordmm.hpp
@@ -246,7 +246,7 @@ public:
: Node(world, Node::LITERAL, s) {}
static inline Node decimal(World& world, double d, unsigned frac_digits) {
- const SerdNode val = serd_node_new_decimal(d, 7);
+ const SerdNode val = serd_node_new_decimal(d, frac_digits);
const SerdNode type = serd_node_from_string(
SERD_URI, (const uint8_t*)SORD_NS_XSD "decimal");
@@ -493,8 +493,8 @@ inline void
Model::load_string(SerdEnv* env,
SerdSyntax syntax,
const char* str,
- size_t len,
- const std::string& base_uri)
+ size_t /*len*/,
+ const std::string& /*base_uri*/)
{
SerdReader* reader = sord_new_reader(_c_obj, env, syntax, NULL);
serd_reader_read_string(reader, (const uint8_t*)str);
@@ -510,7 +510,7 @@ inline void
Model::load_file(SerdEnv* env,
SerdSyntax syntax,
const std::string& data_uri,
- const std::string& base_uri)
+ const std::string& /*base_uri*/)
{
uint8_t* path = serd_file_uri_parse((const uint8_t*)data_uri.c_str(), NULL);
if (!path) {
diff --git a/src/sordmm_test.cpp b/src/sordmm_test.cpp
index d0a5a3a..8dc1386 100644
--- a/src/sordmm_test.cpp
+++ b/src/sordmm_test.cpp
@@ -17,7 +17,7 @@
#include "sord/sordmm.hpp"
int
-main(int argc, char** argv)
+main()
{
Sord::World world;
Sord::Model model(world, "http://example.org/");