Skip to content

Commit

Permalink
Fixing gcc7 compiler error in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Heller committed Jul 5, 2017
1 parent a226213 commit 46d6021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/threads/stack_check.cpp
Expand Up @@ -39,7 +39,7 @@ void stack_remaining(const char *txt, info_stack &stack) {

void stack_waste(int N, info_stack &stack) {
// declare 1 MB of stack vars
char bytes[1<<10];
char bytes[1<<10] = {0};
// prevent the compiler optimizing it away
std::fill_n(&bytes[0], 32, 0);
std::stringstream dummy;
Expand Down

0 comments on commit 46d6021

Please sign in to comment.