/*
* 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;
/*
* allocates DOS in-memory stuff
*/
-struct fdisk_label *fdisk_new_dos_label(struct fdisk_context *cxt)
+struct fdisk_label *fdisk_new_dos_label(struct fdisk_context *cxt __attribute__ ((__unused__)))
{
struct fdisk_label *lb;
struct fdisk_dos_label *dos;
- assert(cxt);
-
dos = calloc(1, sizeof(*dos));
if (!dos)
return NULL;
/*
* allocates GPT in-memory stuff
*/
-struct fdisk_label *fdisk_new_gpt_label(struct fdisk_context *cxt)
+struct fdisk_label *fdisk_new_gpt_label(struct fdisk_context *cxt __attribute__ ((__unused__)))
{
struct fdisk_label *lb;
struct fdisk_gpt_label *gpt;
- assert(cxt);
-
gpt = calloc(1, sizeof(*gpt));
if (!gpt)
return NULL;
};
/* Allocates an SGI label driver. */
-struct fdisk_label *fdisk_new_sgi_label(struct fdisk_context *cxt)
+struct fdisk_label *fdisk_new_sgi_label(struct fdisk_context *cxt __attribute__ ((__unused__)))
{
struct fdisk_label *lb;
struct fdisk_sgi_label *sgi;
- assert(cxt);
-
sgi = calloc(1, sizeof(*sgi));
if (!sgi)
return NULL;
/*
* allocates SUN label driver
*/
-struct fdisk_label *fdisk_new_sun_label(struct fdisk_context *cxt)
+struct fdisk_label *fdisk_new_sun_label(struct fdisk_context *cxt __attribute__ ((__unused__)))
{
struct fdisk_label *lb;
struct fdisk_sun_label *sun;
- assert(cxt);
-
sun = calloc(1, sizeof(*sun));
if (!sun)
return NULL;