From a6c6f76ceb95a0986fd1a36cc30f8241734d20c3 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 13 Mar 2010 14:18:50 +0000 Subject: Fix build with -DNDEBUG in CFLAGS Signed-off-by: Blue Swirl --- block/vvfat.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'block') diff --git a/block/vvfat.c b/block/vvfat.c index bb707c0008..aaa8593358 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -2462,10 +2462,13 @@ static int handle_commits(BDRVVVFATState* s) fail = -2; break; case ACTION_WRITEOUT: { +#ifndef NDEBUG + /* these variables are only used by assert() below */ direntry_t* entry = array_get(&(s->directory), commit->param.writeout.dir_index); uint32_t begin = begin_of_direntry(entry); mapping_t* mapping = find_mapping_for_cluster(s, begin); +#endif assert(mapping); assert(mapping->begin == begin); -- cgit v1.2.3