mirror of
https://github.com/boostorg/optional.git
synced 2025-07-29 12:07:21 +02:00
Fixed unused warning
This commit is contained in:
@ -9,6 +9,7 @@
|
|||||||
// You are welcome to contact the author at:
|
// You are welcome to contact the author at:
|
||||||
// akrzemi1@gmail.com
|
// akrzemi1@gmail.com
|
||||||
|
|
||||||
|
#include "boost/core/ignore_unused.hpp"
|
||||||
#include "boost/core/lightweight_test.hpp"
|
#include "boost/core/lightweight_test.hpp"
|
||||||
#include "boost/optional/detail/optional_config.hpp"
|
#include "boost/optional/detail/optional_config.hpp"
|
||||||
|
|
||||||
@ -35,6 +36,7 @@ struct Binder
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
Binder b = global_i;
|
Binder b = global_i;
|
||||||
|
boost::ignore_unused(b);
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user