postgres.git / summary / log / commit / refs
commit a2fd62dd53fb606dee69e0f4eb12289c87f5c8b1
Author: Peter Eisentraut <peter_e@gmx.net>
Date: Sat Feb 20 04:07:46 2016 +0000
First released in: 9.6.0
Suppress GCC 6 warning about self-comparison
Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.com>
src/port/path.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/port/path.c b/src/port/path.c
index 5c9de0cd331..7bf7cbc9b3e 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
}
/*
[parent: 92d4294d4bbd]