diff --git a/src/backend/file.h b/src/backend/file.h index 4fd672187..1833f0f54 100644 --- a/src/backend/file.h +++ b/src/backend/file.h @@ -170,12 +170,13 @@ lumiera_file_release_mmap (LumieraFile self, LumieraMMap map); /** * helper macro for acquireing and releasing maped regions + * @param nobugflag yet unused * @param file the file from from where to acquire the mapped region * @param start the start offset for the mmaped region * @param size the length of the requested block * @param addr name of a void* variable pointing to the requested memory */ -#define LUMIERA_FILE_MMAP_SECTION(file, start, size, addr) \ +#define LUMIERA_FILE_MMAP_SECTION(nobugflag, file, start, size, addr) \ for (LumieraMMap map_##__LINE__ = \ lumiera_file_mmap_acquire (file, start, size); \ map_##__LINE__; \ diff --git a/tests/backend/test-filemmap.c b/tests/backend/test-filemmap.c index 921d2b3ab..c93e2543c 100644 --- a/tests/backend/test-filemmap.c +++ b/tests/backend/test-filemmap.c @@ -319,7 +319,7 @@ TEST (mmap_section) LumieraFile file = lumiera_file_new (",tmp-filemmap", LUMIERA_FILE_RECREATE); lumiera_file_set_chunksize_bias (file, 4096, 0); - LUMIERA_FILE_MMAP_SECTION(file, 20, 20, addr) + LUMIERA_FILE_MMAP_SECTION (NOBUG_ON, file, 20, 20, addr) { strcpy (addr, "mmap section"); } @@ -337,7 +337,7 @@ TEST (mmap_section_err) LumieraFile file = lumiera_file_new (",tmp-filemmap", LUMIERA_FILE_RECREATE); /* forgot to set lumiera_file_chunksize_set (file, 4096); */ - LUMIERA_FILE_MMAP_SECTION(file, 20, 20, addr) + LUMIERA_FILE_MMAP_SECTION (NOBUG_ON, file, 20, 20, addr) { strcpy (addr, "mmap section"); }