fix ASSERT macros: return -1 instead of bare return in int main() (FreeBSD -Wreturn-mismatch)
This commit is contained in:
1 parent
075d97a459
commit
fcb6a59ca9
5 files changed
+5
-5
No files matched your search
@@ -35,7 +35,7 @@ static struct {
|
||||
#define PASS() do { puts("PASS"); stats.passed++; } while(0)
|
||||
#define FAIL(msg) do { printf("FAIL: %s\n", msg); stats.failed++; } while(0)
|
||||
|
||||
#define ASSERT(c, m) do { if (!(c)) { FAIL(m); return; } } while(0)
|
||||
#define ASSERT(c, m) do { if (!(c)) { FAIL(m); return -1; } } while(0)
|
||||
#define ASSERT_EQ(a,b,m) ASSERT((a)==(b),m)
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
|
||||
Reference in new issue
Block a user