Skip to content

Commit

Permalink
Fix uninitialized warning (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominichamon authored Mar 25, 2018
1 parent 7b03df7 commit e7eb54b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/donotoptimize_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ struct BitRef {
int main(int, char*[]) {
// this test verifies compilation of DoNotOptimize() for some types

char buffer8[8];
char buffer8[8] = "";
benchmark::DoNotOptimize(buffer8);

char buffer20[20];
char buffer20[20] = "";
benchmark::DoNotOptimize(buffer20);

char buffer1024[1024];
char buffer1024[1024] = "";
benchmark::DoNotOptimize(buffer1024);
benchmark::DoNotOptimize(&buffer1024[0]);

Expand Down

0 comments on commit e7eb54b

Please sign in to comment.