Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

Commit 106e8c5

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove unused variables in fboss/agent/state/Interface.cpp
Summary: X-link: facebookresearch/fbpcf#536 LLVM-15 has a warning `-Wunused-but-set-variable` which we treat as an error because it's so often diagnostic of a code issue. Unused variables can compromise readability or, worse, performance. This diff either (a) removes an unused variable and, possibly, it's associated code, or (b) qualifies the variable with `[[maybe_unused]]`, mostly in cases where the variable _is_ used, but, eg, in an `assert` statement that isn't present in production code. - If you approve of this diff, please use the "Accept & Ship" button :-) Reviewed By: peygar Differential Revision: D55099975
1 parent c8e3049 commit 106e8c5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

fbpcs/data_processing/sharding/GenericSharder.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,6 @@ void strReplaceNullColumnWithEmpty(std::string& str) {
6565
static const std::string kIdColumnPrefix = "id_";
6666
static const std::string numIds = "num_ids";
6767

68-
/*
69-
The chunk size for writing to cloud storage (currently
70-
only AWS S3) must be greater than 5 MB, per the AWS
71-
documentation. Otherwise multipart upload will fail.
72-
73-
The number below is 5 MB in bytes.
74-
*/
75-
static const uint64_t kBufferedWriterChunkSize = 5'242'880;
76-
7768
std::vector<std::string> GenericSharder::genOutputPaths(
7869
const std::string& outputBasePath,
7970
std::size_t startIndex,

0 commit comments

Comments
 (0)