Fixed some "statement not reached" warnings
authorDan Fandrich <dan@coneharvesters.com>
Fri, 11 Jul 2014 23:39:56 +0000 (01:39 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 11 Jul 2014 23:45:26 +0000 (01:45 +0200)
src/tool_urlglob.c
tests/unit/unit1395.c

index 6e4cdb0..36e83c3 100644 (file)
@@ -36,7 +36,7 @@ typedef enum {
 } GlobCode;
 
 #define GLOBERROR(string, column, code) \
-  glob->error = string, glob->pos = column, code;
+  glob->error = string, glob->pos = column, code
 
 void glob_cleanup(URLGlob* glob);
 
index bc3f36d..6f9fc8c 100644 (file)
@@ -79,6 +79,6 @@ UNITTEST_START
     free(out);
   }
 
-  return fails;
+  fail_if(fails, "output mismatched");
 
 UNITTEST_STOP