aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-22 01:40:18 +0000
committerDavid Robillard <d@drobilla.net>2014-11-22 01:40:18 +0000
commitda50a4902ee92fafd34c2ea376da07381d3a221d (patch)
tree7a3fdb1163059a76fb17aae9b3fed9b7e3fb7b57
parent164337b78f11c7fdb5881df6262ea0d02a1cad6f (diff)
downloadserd-da50a4902ee92fafd34c2ea376da07381d3a221d.tar.gz
serd-da50a4902ee92fafd34c2ea376da07381d3a221d.tar.bz2
serd-da50a4902ee92fafd34c2ea376da07381d3a221d.zip
Fix warnings when building with ISO C++ compilers.
git-svn-id: http://svn.drobilla.net/serd/trunk@477 490d8e77-9747-427b-9fa3-0b8f29cee8a0
-rw-r--r--NEWS3
-rw-r--r--serd/serd.h2
-rw-r--r--tests/serd_test.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index f5ea2e00..d27ee334 100644
--- a/NEWS
+++ b/NEWS
@@ -1,8 +1,9 @@
serd (0.21.0) unstable;
* Remove dependence on fmax() to avoid portability issues
+ * Fix warnings when building with ISO C++ compilers
- -- David Robillard <d@drobilla.net> Fri, 03 Oct 2014 13:08:29 -0400
+ -- David Robillard <d@drobilla.net> Fri, 21 Nov 2014 20:40:06 -0500
serd (0.20.0) stable;
diff --git a/serd/serd.h b/serd/serd.h
index 635c9928..9f9257ec 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -183,7 +183,7 @@ typedef enum {
@see <a href="http://www.w3.org/TeamSubmission/turtle#nodeID">Turtle
<tt>nodeID</tt></a>
*/
- SERD_BLANK = 4,
+ SERD_BLANK = 4
} SerdType;
diff --git a/tests/serd_test.c b/tests/serd_test.c
index 971d6e01..eecbb5b0 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -45,7 +45,7 @@ static bool
test_strtod(double dbl, double max_delta)
{
char buf[1024];
- snprintf(buf, sizeof(buf), "%lf", dbl);
+ snprintf(buf, sizeof(buf), "%f", dbl);
char* endptr = NULL;
const double out = serd_strtod(buf, &endptr);