mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-14 16:58:05 +00:00
Bugfix: Fix warnings when built without libudev support
This commit is contained in:
parent
4eb23c7ea3
commit
c629cc5d79
12
fpgautils.c
12
fpgautils.c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user