Skip to content

Commit 86ddc12

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

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
@@ -86,7 +86,11 @@ skip_drive(const char *path)
8686
bool
8787
has_drive_prefix(const char *path)
8888
{
89+
#ifdef WIN32
8990
return skip_drive(path) != path;
91+
#else
92+
return false;
93+
#endif
9094
}
9195

9296
/*

0 commit comments

Comments
 (0)