diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-09-01 12:48:06 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-09-01 12:48:06 -0400 |
commit | 1efc1ea10f284264e2555c4d182abd82ca3575e3 (patch) | |
tree | 6642f9b483476f67cb75dfc9b005208b9d670b93 /src | |
parent | 10ad15f48ab187d754d657892d2f65695a7adea6 (diff) |
Suppress GCC 6 warning about self-comparison
Back-patch commit a2fd62dd53fb606dee69e0f4eb12289c87f5c8b1
into older branches. Per complaint from Pavel Stehule.
Diffstat (limited to 'src')
-rw-r--r-- | src/port/path.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/port/path.c b/src/port/path.c index 3c633a786bb..32d6c1c80d5 100644 --- a/src/port/path.c +++ b/src/port/path.c @@ -86,7 +86,11 @@ skip_drive(const char *path) bool has_drive_prefix(const char *path) { +#ifdef WIN32 return skip_drive(path) != path; +#else + return false; +#endif } /* |