aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);