Skip to content

Commit

Permalink
fix unused-parameter waning in Release build
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Mar 24, 2019
1 parent db5a76c commit 0fab9d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sample/sample_readme_5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <stdint.h>
#include <vector>

#include <libcopp/utils/std/explicit_declare.h>

// include manager header file
#include <libcotask/task.h>

Expand Down Expand Up @@ -47,7 +49,7 @@ int main() {
return "return value will be ignored";
})
->then(
[&](void *priv_data) {
[&](EXPLICIT_UNUSED_ATTR void *priv_data) {
puts("|it's boring");
printf("test code is %d\n", ++test_code);
assert(&test_code == priv_data);
Expand Down

0 comments on commit 0fab9d5

Please sign in to comment.