Commit 9429ddd
authored
Update tesseract.perf.cc
got these warnings building on macos:
```
src/tesseract.perf.cc:51:29: warning: compound assignment to object of volatile-qualified type 'volatile size_t' (aka 'volatile unsigned long') is deprecated [-Wdeprecated-volatile] total_num_errors_used += decoder.predicted_errors_buffer.size(); ^ src/tesseract.perf.cc:87:3: note: in instantiation of function template specialization 'benchmark_decoder<TesseractDecoder>' requested here benchmark_decoder(decoder, circuit, num_shots); ^ src/tesseract.perf.cc:51:29: warning: compound assignment to object of volatile-qualified type 'volatile size_t' (aka 'volatile unsigned long') is deprecated [-Wdeprecated-volatile] total_num_errors_used += decoder.predicted_errors_buffer.size(); ^ src/tesseract.perf.cc:108:3: note: in instantiation of function template specialization 'benchmark_decoder<SimplexDecoder>' requested here benchmark_decoder(decoder, circuit, num_shots); ^ 2 warnings generated. INFO: From Linking src/tesseract_perf:
```
fair enough and we don't need volatile because the cout is a side effect. I sort of wish there were a language feature for not optimizing out variables in C++...1 parent da5cc0f commit 9429ddd
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments