From: Tom Lane Date: Thu, 1 Sep 2016 16:48:06 +0000 (-0400) Subject: Suppress GCC 6 warning about self-comparison X-Git-Tag: REL9_5_5~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86ddc12a8dd18676146ed6ef085a9a3c4029d169;p=thirdparty%2Fpostgresql.git Suppress GCC 6 warning about self-comparison Back-patch commit a2fd62dd53fb606dee69e0f4eb12289c87f5c8b1 into older branches. Per complaint from Pavel Stehule. --- 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 } /*