aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-09-01 12:48:06 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-09-01 12:48:06 -0400
commit86ddc12a8dd18676146ed6ef085a9a3c4029d169 (patch)
treefd0d259272215d36b0683f55cc81c74bfb78eb7d /src
parentc40bb11559c516c24ff1460e2fac5da20abfeb39 (diff)
downloadpostgresql-86ddc12a8dd18676146ed6ef085a9a3c4029d169.tar.gz
postgresql-86ddc12a8dd18676146ed6ef085a9a3c4029d169.zip
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.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
}
/*