From 4ce93a9f12848bfe5fe1db468f680dd994ffe96d Mon Sep 17 00:00:00 2001 From: janwas Date: Tue, 24 Aug 2004 17:42:46 +0000 Subject: [PATCH] remove misalign warning (no longer relevant) This was SVN commit r1052. --- source/lib/res/file.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/source/lib/res/file.cpp b/source/lib/res/file.cpp index b2f3e99349..bcd5b82b66 100755 --- a/source/lib/res/file.cpp +++ b/source/lib/res/file.cpp @@ -899,14 +899,6 @@ debug_out("file_io fd=%d size=%d ofs=%d\n", f->fd, data_size, data_ofs); actual_size = round_up(ofs_misalign + data_size, BLOCK_SIZE); } - // warn in debug build if buffer and offset don't match - // (=> aio would have to realign every block). -#ifndef NDEBUG - size_t buf_misalign = ((uintptr_t)actual_buf) % BLOCK_SIZE; - if(actual_buf && actual_ofs % BLOCK_SIZE != buf_misalign) - debug_out("file_io: warning: buffer %p and offset %x are misaligned\n", actual_buf, data_ofs); -#endif - // skip aio code, use lowio if(no_aio)