remove compiler warnings
diff --git a/skeletons/constr_SET.c b/skeletons/constr_SET.c
index 1fcbc2e..83488d9 100644
--- a/skeletons/constr_SET.c
+++ b/skeletons/constr_SET.c
@@ -675,11 +675,12 @@
*/
ch_size = xer_next_token(&ctx->context,
buf_ptr, size, &ch_type);
- switch(ch_size) {
- case -1: RETURN(RC_FAIL);
- case 0: RETURN(RC_WMORE);
- default:
+ if(ch_size == -1) {
+ RETURN(RC_FAIL);
+ } else {
switch(ch_type) {
+ case PXER_WMORE:
+ RETURN(RC_WMORE);
case PXER_COMMENT: /* Got XML comment */
case PXER_TEXT: /* Ignore free-standing text */
XER_ADVANCE(ch_size); /* Skip silently */