diff options
author | Karel Zak | 2018-05-03 10:30:51 +0200 |
---|---|---|
committer | Karel Zak | 2018-05-03 10:40:37 +0200 |
commit | 01aec449f13482ad5dfe0be59dc3f69d7df2da70 (patch) | |
tree | 38e27e978b5431f2a5279c3ce62384fcd696df25 /libfdisk/src/bsd.c | |
parent | libmount: fix compiler warning [-Wunused-parameter] (diff) | |
download | kernel-qcow2-util-linux-01aec449f13482ad5dfe0be59dc3f69d7df2da70.tar.gz kernel-qcow2-util-linux-01aec449f13482ad5dfe0be59dc3f69d7df2da70.tar.xz kernel-qcow2-util-linux-01aec449f13482ad5dfe0be59dc3f69d7df2da70.zip |
libfdisk: fix compiler warning [-Wunused-parameter]
Reported-by: L A Walsh <lkml@tlinx.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/bsd.c')
-rw-r--r-- | libfdisk/src/bsd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libfdisk/src/bsd.c b/libfdisk/src/bsd.c index 6fe9c2a6d..9ba3140f1 100644 --- a/libfdisk/src/bsd.c +++ b/libfdisk/src/bsd.c @@ -1028,13 +1028,11 @@ static const struct fdisk_field bsd_fields[] = /* * allocates BSD label driver */ -struct fdisk_label *fdisk_new_bsd_label(struct fdisk_context *cxt) +struct fdisk_label *fdisk_new_bsd_label(struct fdisk_context *cxt __attribute__ ((__unused__))) { struct fdisk_label *lb; struct fdisk_bsd_label *bsd; - assert(cxt); - bsd = calloc(1, sizeof(*bsd)); if (!bsd) return NULL; |