We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37f52dc commit 697b6ddCopy full SHA for 697b6dd
1 file changed
demos/demo_sift1M.cpp
@@ -50,7 +50,7 @@ float* fvecs_read(const char* fname, size_t* d_out, size_t* n_out) {
50
*d_out = d;
51
*n_out = n;
52
float* x = new float[n * (d + 1)];
53
- size_t nr = fread(x, sizeof(float), n * (d + 1), f);
+ size_t nr __attribute__((unused)) = fread(x, sizeof(float), n * (d + 1), f);
54
assert(nr == n * (d + 1) || !"could not read whole file");
55
56
// shift array to remove row headers
0 commit comments