mirror of https://git.tukaani.org/xz.git
Silence a compiler warning on DOS-like systems.
This commit is contained in:
parent
ad12edc952
commit
0adc72feb8
|
@ -73,8 +73,11 @@ io_init(void)
|
||||||
static void
|
static void
|
||||||
io_unlink(const char *name, const struct stat *known_st)
|
io_unlink(const char *name, const struct stat *known_st)
|
||||||
{
|
{
|
||||||
|
#ifdef DOSLIKE
|
||||||
// On Windows, st_ino is meaningless, so don't bother testing it.
|
// On Windows, st_ino is meaningless, so don't bother testing it.
|
||||||
#ifndef DOSLIKE
|
// Just silence a compiler warning.
|
||||||
|
(void)known_st;
|
||||||
|
#else
|
||||||
struct stat new_st;
|
struct stat new_st;
|
||||||
|
|
||||||
if (lstat(name, &new_st)
|
if (lstat(name, &new_st)
|
||||||
|
|
Loading…
Reference in New Issue