diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-03-13 14:18:50 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-03-13 14:18:50 +0000 |
commit | a6c6f76ceb95a0986fd1a36cc30f8241734d20c3 (patch) | |
tree | 23676aa080805386a5011b555713ee774e20f889 /block/vvfat.c | |
parent | 090414a30c6c1d276eca48e76945f2cfcf0cccf9 (diff) | |
download | qemu-a6c6f76ceb95a0986fd1a36cc30f8241734d20c3.zip qemu-a6c6f76ceb95a0986fd1a36cc30f8241734d20c3.tar.gz qemu-a6c6f76ceb95a0986fd1a36cc30f8241734d20c3.tar.bz2 |
Fix build with -DNDEBUG in CFLAGS
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'block/vvfat.c')
-rw-r--r-- | block/vvfat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/vvfat.c b/block/vvfat.c index bb707c0..aaa8593 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); |