summaryrefslogtreecommitdiff
path: root/src/port
diff options
context:
space:
mode:
authorTom Lane2016-09-01 16:48:06 +0000
committerTom Lane2016-09-01 16:48:06 +0000
commit86ddc12a8dd18676146ed6ef085a9a3c4029d169 (patch)
treefd0d259272215d36b0683f55cc81c74bfb78eb7d /src/port
parentc40bb11559c516c24ff1460e2fac5da20abfeb39 (diff)
Suppress GCC 6 warning about self-comparison
Back-patch commit a2fd62dd53fb606dee69e0f4eb12289c87f5c8b1 into older branches. Per complaint from Pavel Stehule.
Diffstat (limited to 'src/port')
-rw-r--r--src/port/path.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/port/path.c b/src/port/path.c
index d0f72df29c2..c79814ddacd 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
}
/*