summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-22 01:43:35 +0000
committerDavid Robillard <d@drobilla.net>2014-11-22 01:43:35 +0000
commitd91f0506fc2be907109a054e140dffe6e88bd597 (patch)
tree5315a1962a1c482336a93949aee4122c05dd7026
parent70071695b5a001c331d5b6ef082a2d4c0812ba21 (diff)
downloadsratom-d91f0506fc2be907109a054e140dffe6e88bd597.tar.gz
sratom-d91f0506fc2be907109a054e140dffe6e88bd597.tar.bz2
sratom-d91f0506fc2be907109a054e140dffe6e88bd597.zip
Fix warnings when building with ISO C++ compilers.
git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@5492 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--NEWS6
-rw-r--r--sratom/sratom.h2
-rw-r--r--src/sratom.c5
-rw-r--r--wscript2
4 files changed, 9 insertions, 6 deletions
diff --git a/NEWS b/NEWS
index 2f85ccf..85afb36 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+sratom (0.4.7) unstable;
+
+ * Fix warnings when building with ISO C++ compilers
+
+ -- David Robillard <d@drobilla.net> Fri, 08 Aug 2014 18:14:19 -0400
+
sratom (0.4.6) stable;
* Update for latest LV2 Atom Object simplification
diff --git a/sratom/sratom.h b/sratom/sratom.h
index bb1af95..a86f67e 100644
--- a/sratom/sratom.h
+++ b/sratom/sratom.h
@@ -83,7 +83,7 @@ typedef enum {
to sratom_read(); if this is a resource it will be read as an Object,
but all other named resources encountered will be read as URIs.
*/
- SRATOM_OBJECT_MODE_BLANK_SUBJECT,
+ SRATOM_OBJECT_MODE_BLANK_SUBJECT
} SratomObjectMode;
/**
diff --git a/src/sratom.c b/src/sratom.c
index 4d8add7..272e6e3 100644
--- a/src/sratom.c
+++ b/src/sratom.c
@@ -14,8 +14,6 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define __STDC_LIMIT_MACROS 1
-
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
@@ -36,7 +34,7 @@
typedef enum {
MODE_SUBJECT,
MODE_BODY,
- MODE_SEQUENCE,
+ MODE_SEQUENCE
} ReadMode;
struct SratomImpl {
@@ -600,7 +598,6 @@ read_node(Sratom* sratom,
for (const char* s = str; s < str + len; s += 2) {
unsigned num;
sscanf(s, "%2X", &num);
- assert(num < UINT8_MAX);
const uint8_t c = num;
lv2_atom_forge_raw(forge, &c, 1);
}
diff --git a/wscript b/wscript
index 23bd5a7..2758463 100644
--- a/wscript
+++ b/wscript
@@ -8,7 +8,7 @@ import waflib.extras.autowaf as autowaf
# major increment <=> incompatible changes
# minor increment <=> compatible changes (additions)
# micro increment <=> no interface changes
-SRATOM_VERSION = '0.4.6'
+SRATOM_VERSION = '0.4.7'
SRATOM_MAJOR_VERSION = '0'
# Mandatory waf variables