mirror of
https://github.com/google/benchmark.git
synced 2025-01-29 21:30:18 +08:00
Fix uninitialized warning (#560)
This commit is contained in:
parent
7b03df7ff7
commit
e7eb54b5f8
@ -28,13 +28,13 @@ private:
|
||||
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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user