1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-14 08:48:01 +00:00

Bugfix: Fix warnings when built without libudev support

This commit is contained in:
Luke Dashjr 2012-06-13 16:58:38 +00:00
parent 4eb23c7ea3
commit c629cc5d79

View File

@ -36,10 +36,10 @@
#include "logging.h"
#include "miner.h"
#ifdef HAVE_LIBUDEV
char
serial_autodetect_udev(detectone_func_t detectone, const char*prodname)
{
#ifdef HAVE_LIBUDEV
if (total_devices == MAX_DEVICES)
return 0;
@ -72,10 +72,14 @@ serial_autodetect_udev(detectone_func_t detectone, const char*prodname)
udev_unref(udev);
return found;
#else
return 0;
#endif
}
#else
char
serial_autodetect_udev(__maybe_unused detectone_func_t detectone, __maybe_unused const char*prodname)
{
return 0;
}
#endif
char
serial_autodetect_devserial(detectone_func_t detectone, const char*prodname)