libfdisk: fix OSX compiler warning
libfdisk/src/context.c:1354:54: error: unused parameter 'cxt' [-Werror,-Wunused-parameter] const char *fdisk_get_devmodel(struct fdisk_context *cxt) Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
parent
c0c4feec88
commit
e5e3a87cdb
|
@ -1351,9 +1351,9 @@ dev_t fdisk_get_devno(struct fdisk_context *cxt)
|
|||
*
|
||||
* Returns: device model string or NULL.
|
||||
*/
|
||||
#ifdef __linux__
|
||||
const char *fdisk_get_devmodel(struct fdisk_context *cxt)
|
||||
{
|
||||
#ifdef __linux__
|
||||
assert(cxt);
|
||||
|
||||
if (cxt->dev_model_probed)
|
||||
|
@ -1369,11 +1369,13 @@ const char *fdisk_get_devmodel(struct fdisk_context *cxt)
|
|||
}
|
||||
cxt->dev_model_probed = 1;
|
||||
return cxt->dev_model;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
|
||||
}
|
||||
#else
|
||||
const char *fdisk_get_devmodel(struct fdisk_context *cxt __attribute__((__unused__)))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* fdisk_get_devfd:
|
||||
|
|
Loading…
Reference in New Issue