diff options
| author | Tom Lane | 2016-09-01 16:48:06 +0000 |
|---|---|---|
| committer | Tom Lane | 2016-09-01 16:48:06 +0000 |
| commit | b9ac11a298b22d773bff7939e9db165baf28505b (patch) | |
| tree | 45bd7797c1a4e785458d422e9b23f6c0e6f17bc0 | |
| parent | 823df401d1840a6f5e94d5f725ccf03317cc1176 (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 aebd0a4cdb3..d0d016cc1f5 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 } /* |
