mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Remove warning when built without thread support
This commit is contained in:
parent
3478a95add
commit
b0f85b54b1
1 changed files with 4 additions and 0 deletions
|
|
@ -96,6 +96,8 @@ static void stamp_lock(struct snapraid_disk* disk)
|
|||
{
|
||||
#if HAVE_THREAD
|
||||
thread_mutex_lock(&disk->stamp_mutex);
|
||||
#else
|
||||
(void)disk;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -103,6 +105,8 @@ static void stamp_unlock(struct snapraid_disk* disk)
|
|||
{
|
||||
#if HAVE_THREAD
|
||||
thread_mutex_unlock(&disk->stamp_mutex);
|
||||
#else
|
||||
(void)disk;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue