diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-09-01 12:48:06 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-09-01 12:48:06 -0400 |
commit | 949878126e3aade9333d3af1fa766a87e5b40d24 (patch) | |
tree | 5301c14e8d8675febf2b5949f3189530f01db063 | |
parent | baf111d31b01a658894bfbdf1bebae7c38515f5d (diff) |
Suppress GCC 6 warning about self-comparison
Back-patch commit a2fd62dd53fb606dee69e0f4eb12289c87f5c8b1
into older branches. Per complaint from Pavel Stehule.
-rw-r--r-- | src/port/path.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/port/path.c b/src/port/path.c index a0da7c5cf2e..1e86e5146d4 100644 --- a/src/port/path.c +++ b/src/port/path.c @@ -82,7 +82,11 @@ skip_drive(const char *path) bool has_drive_prefix(const char *path) { +#ifdef WIN32 return skip_drive(path) != path; +#else + return false; +#endif } /* |