Skip to content

Commit

Permalink
test: Fix unused member warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stotko committed Feb 5, 2020
1 parent b660dd9 commit 1cfd3d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/stdgpu/memory.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1348,6 +1348,9 @@ namespace
#if STDGPU_CODE == STDGPU_CODE_HOST
Counter::constructor_calls++;
#endif

// Suppress unused member warning
x = 0;
}

STDGPU_HOST_DEVICE
Expand All @@ -1356,6 +1359,9 @@ namespace
#if STDGPU_CODE == STDGPU_CODE_HOST
Counter::destructor_calls++;
#endif

// Suppress unused member warning
x = 0;
}

private:
Expand Down

0 comments on commit 1cfd3d3

Please sign in to comment.