Skip to content

Commit 9498781

Browse files
committed
Suppress GCC 6 warning about self-comparison
Back-patch commit a2fd62d into older branches. Per complaint from Pavel Stehule.
1 parent baf111d commit 9498781

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/port/path.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ skip_drive(const char *path)
8282
bool
8383
has_drive_prefix(const char *path)
8484
{
85+
#ifdef WIN32
8586
return skip_drive(path) != path;
87+
#else
88+
return false;
89+
#endif
8690
}
8791

8892
/*

0 commit comments

Comments
 (0)