Skip to content

Commit 697b6dd

Browse files
Amir Sadoughifacebook-github-bot
authored andcommitted
Fix unused variable compilation error (#4041)
Summary: Pull Request resolved: #4041 Reviewed By: junjieqi Differential Revision: D66477560 fbshipit-source-id: d2ee25424a902744910d3df77bd73b505d131618
1 parent 37f52dc commit 697b6dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demos/demo_sift1M.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ float* fvecs_read(const char* fname, size_t* d_out, size_t* n_out) {
5050
*d_out = d;
5151
*n_out = n;
5252
float* x = new float[n * (d + 1)];
53-
size_t nr = fread(x, sizeof(float), n * (d + 1), f);
53+
size_t nr __attribute__((unused)) = fread(x, sizeof(float), n * (d + 1), f);
5454
assert(nr == n * (d + 1) || !"could not read whole file");
5555

5656
// shift array to remove row headers

0 commit comments

Comments
 (0)