Browse Source

Fix warnings when building with ISO C++ compilers.

git-svn-id: http://svn.drobilla.net/serd/trunk@477 490d8e77-9747-427b-9fa3-0b8f29cee8a0
zrythm_meson
David Robillard 8 years ago
parent
commit
da50a4902e
  1. 3
      NEWS
  2. 2
      serd/serd.h
  3. 2
      tests/serd_test.c

3
NEWS

@ -1,8 +1,9 @@ @@ -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;

2
serd/serd.h

@ -183,7 +183,7 @@ typedef enum { @@ -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;

2
tests/serd_test.c

@ -45,7 +45,7 @@ static bool @@ -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);

Loading…
Cancel
Save