From: Zbigniew Jędrzejewski-Szmek Date: Sat, 1 Apr 2017 03:21:20 +0000 (-0400) Subject: shared/dissect-image: fix warning about unused function when !HAVE_BLKID X-Git-Tag: v234~331^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a75e27eb;p=thirdparty%2Fsystemd.git shared/dissect-image: fix warning about unused function when !HAVE_BLKID --- diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index 1c9d21566fd..36c94ac71b4 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -42,8 +42,8 @@ #include "udev-util.h" #include "xattr-util.h" -static int probe_filesystem(const char *node, char **ret_fstype) { #ifdef HAVE_BLKID +static int probe_filesystem(const char *node, char **ret_fstype) { _cleanup_blkid_free_probe_ blkid_probe b = NULL; const char *fstype; int r; @@ -80,10 +80,8 @@ static int probe_filesystem(const char *node, char **ret_fstype) { not_found: *ret_fstype = NULL; return 0; -#else - return -EOPNOTSUPP; -#endif } +#endif int dissect_image(int fd, const void *root_hash, size_t root_hash_size, DissectImageFlags flags, DissectedImage **ret) {