From a2fd62dd53fb606dee69e0f4eb12289c87f5c8b1 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 19 Feb 2016 23:07:46 -0500 Subject: [PATCH] Suppress GCC 6 warning about self-comparison Reviewed-by: Thomas Munro --- src/port/path.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/port/path.c b/src/port/path.c index 5c9de0cd33..7bf7cbc9b3 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 } /* -- 2.40.0