diff --git a/sample/sample_readme_5.cpp b/sample/sample_readme_5.cpp index 4964c29..6369cd3 100755 --- a/sample/sample_readme_5.cpp +++ b/sample/sample_readme_5.cpp @@ -17,6 +17,8 @@ #include #include +#include + // include manager header file #include @@ -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);