fix loopback example building with -DNDEBUG
This commit is contained in:
parent
491f7ba326
commit
45b4ef924b
|
@ -96,6 +96,7 @@ int main(int argc, char *argv[])
|
||||||
/* Figure out the size of the underlying block device. */
|
/* Figure out the size of the underlying block device. */
|
||||||
err = ioctl(fd, BLKGETSIZE64, &size);
|
err = ioctl(fd, BLKGETSIZE64, &size);
|
||||||
assert(err != -1);
|
assert(err != -1);
|
||||||
|
(void)err;
|
||||||
fprintf(stderr, "The size of this device is %ld bytes.\n", size);
|
fprintf(stderr, "The size of this device is %ld bytes.\n", size);
|
||||||
bop.size = size;
|
bop.size = size;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue