Skip to content

Commit

Permalink
fix unused parameters build failures
Browse files Browse the repository at this point in the history
Summary: CI builds for project forty were failing after D57530670. Adding in `maybe_unused` attribute so the compiler doesn't complain.

Reviewed By: georges-berenger

Differential Revision: D57647776

fbshipit-source-id: 545514c08d24da27ba04d685f0d32352f4ac0bba
  • Loading branch information
kiran1228 authored and facebook-github-bot committed May 22, 2024
1 parent 29380c9 commit 55cf116
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vrs/DiskFileChunk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <cstdio>

#include <vrs/FileHandler.h>
#include <vrs/os/CompilerAttributes.h>
#include <vrs/os/Utils.h>

namespace vrs {
Expand All @@ -42,7 +43,7 @@ class DiskFileChunk {
~DiskFileChunk() {
close();
}
int create(const string& newPath, const map<string, string>& options) {
int create(const string& newPath, MAYBE_UNUSED const map<string, string>& options) {
close();
file_ = os::fileOpen(newPath, "wb");
if (file_ == nullptr) {
Expand All @@ -58,7 +59,7 @@ class DiskFileChunk {
return SUCCESS;
#endif
}
int open(bool readOnly, const map<string, string>& options) {
int open(bool readOnly, MAYBE_UNUSED const map<string, string>& options) {
if (file_ != nullptr) {
os::fileClose(file_);
}
Expand Down

0 comments on commit 55cf116

Please sign in to comment.