[llvm] r325275 - Silence warning about unused private variable.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 15 10:46:59 PST 2018
Author: zturner
Date: Thu Feb 15 10:46:59 2018
New Revision: 325275
URL: http://llvm.org/viewvc/llvm-project?rev=325275&view=rev
Log:
Silence warning about unused private variable.
Modified:
llvm/trunk/lib/Support/Unix/Path.inc
Modified: llvm/trunk/lib/Support/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=325275&r1=325274&r2=325275&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc (original)
+++ llvm/trunk/lib/Support/Unix/Path.inc Thu Feb 15 10:46:59 2018
@@ -643,7 +643,9 @@ std::error_code mapped_file_region::init
mapped_file_region::mapped_file_region(int fd, mapmode mode, size_t length,
uint64_t offset, std::error_code &ec)
- : Size(length), Mapping() {
+ : Size(length), Mapping(), FD(fd), Mode(mode) {
+ (void)FD;
+ (void)Mode;
ec = init(fd, offset, mode);
if (ec)
Mapping = nullptr;
More information about the llvm-commits
mailing list