From 71a3321ecb9e950001db7ba5d5073ac19b02338d Mon Sep 17 00:00:00 2001 From: Vsevolod Shorin Date: Wed, 29 Nov 2023 06:07:35 -0800 Subject: [PATCH] Make VRS libray better compile on Windows Summary: Our Windows compiler is particularly unhappy about unused arguments, making them not unused in the most compiler- and linter-friendly way. Reviewed By: georges-berenger Differential Revision: D51550307 fbshipit-source-id: f7ffeb173f509c178bc9a558d99d68d9b47d9b73 --- vrs/FileDelegator.h | 1 + vrs/FileHandler.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/vrs/FileDelegator.h b/vrs/FileDelegator.h index db58ad04..fb1f10f4 100644 --- a/vrs/FileDelegator.h +++ b/vrs/FileDelegator.h @@ -58,6 +58,7 @@ class FileDelegator { /// exists or can be opened, merely, that parsing the URI did not fail. /// On success, any of the fields may have been set or changed, including fileHandlerName and URI. virtual int parseUri(FileSpec& inOutFileSpec, size_t colonIndex) const { + (void)colonIndex; return inOutFileSpec.parseUri(); } }; diff --git a/vrs/FileHandler.h b/vrs/FileHandler.h index d3fd1838..845f273c 100644 --- a/vrs/FileHandler.h +++ b/vrs/FileHandler.h @@ -136,6 +136,7 @@ class FileHandler : public FileDelegator { /// @param length: the number of bytes to check availability of. /// @return true if available, false if unavailable (e.g. requiring a network fetch) virtual bool isAvailableOrPrefetch(size_t length) { + (void)length; return !isRemoteFileSystem(); } /// Read a number of bytes, in a chunk aware way. @@ -211,6 +212,8 @@ class FileHandler : public FileDelegator { virtual bool prefetchReadSequence( const vector>& sequence, bool clearSequence = true) { + (void)sequence; + (void)clearSequence; return false; }