diff options
author | Jean Delvare <jdelvare@suse.de> | 2015-05-13 07:19:27 +0000 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2015-05-13 07:19:27 +0000 |
commit | c2553eed2ea3b42278b6ffd4626b244adb56d413 (patch) | |
tree | eb95aa76e0736dc4244e620dcb55a5652af7b324 /util.c | |
parent | 963cdfec4e2b1ab15da9756c106099cfb1672e5f (diff) | |
download | dmidecode-git-c2553eed2ea3b42278b6ffd4626b244adb56d413.tar.gz |
Fix warnings about unused labels when building without -DUSE_MMAP
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -193,9 +193,8 @@ void *mem_chunk(off_t base, size_t len, const char *devmem) goto out; -#endif /* USE_MMAP */ - try_read: +#endif /* USE_MMAP */ if (lseek(fd, base, SEEK_SET) == -1) { fprintf(stderr, "%s: ", devmem); @@ -210,7 +209,9 @@ try_read: return NULL; } +#ifdef USE_MMAP out: +#endif if (close(fd) == -1) perror(devmem); |