Suppress GCC 6 warning about self-comparison
authorTom Lane
Thu, 1 Sep 2016 16:48:06 +0000 (12:48 -0400)
committerTom Lane
Thu, 1 Sep 2016 16:48:06 +0000 (12:48 -0400)
Back-patch commit a2fd62dd53fb606dee69e0f4eb12289c87f5c8b1
into older branches.  Per complaint from Pavel Stehule.

src/port/path.c

index d0f72df29c2fd9d8f669ee369ffbefc11083c034..c79814ddacdca95d2da1ab552906382c26775c24 100644 (file)
@@ -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
 }
 
 /*