From 93ae544f9c2fb4073aea0173c431e4843ad64c3c Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Mon, 10 Jul 2017 16:43:58 -0700 Subject: [PATCH] Tidy up file_posix unused variable --- CHANGELOG.md | 1 + include/beast/core/impl/file_posix.ipp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e62ef39..53f95cf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Version 78: * Tidy up FieldsReader doc * Add Boost.Locale utf8 benchmark comparison * Tidy up dstream for existing Boost versions +* Tidy up file_posix unused variable HTTP: diff --git a/include/beast/core/impl/file_posix.ipp b/include/beast/core/impl/file_posix.ipp index 6a637849..f0a7279b 100644 --- a/include/beast/core/impl/file_posix.ipp +++ b/include/beast/core/impl/file_posix.ipp @@ -114,7 +114,9 @@ open(char const* path, file_mode mode, error_code& ec) fd_ = -1; } int f = 0; +#ifndef __APPLE__ int advise = 0; +#endif switch(mode) { default: