Skip to content

Commit e3521b0

Browse files
Update boost.cpp
1 parent b76e6ca commit e3521b0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/cfg/boost.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ namespace bdata = boost::unit_test::data;
210210
class fibonacci_dataset {
211211
public:
212212
// the type of the samples is deduced
213+
// cppcheck-suppress unusedStructMember // used in template is_dataset
213214
static const int arity = 1;
214215

215216
struct iterator {
@@ -233,7 +234,7 @@ class fibonacci_dataset {
233234
bdata::size_t size() const { return bdata::BOOST_TEST_DS_INFINITE_SIZE; }
234235

235236
// iterator
236-
iterator begin() const { return iterator(); }
237+
static iterator begin() { return iterator(); }
237238
};
238239

239240
namespace boost { namespace unit_test { namespace data { namespace monomorphic {
@@ -248,5 +249,6 @@ BOOST_DATA_TEST_CASE(
248249
fibonacci_dataset() ^ bdata::make( { 1, 2, 3, 5, 8, 13, 21, 35, 56 } ),
249250
fib_sample, exp)
250251
{
252+
// cppcheck-suppress valueFlowBailoutIncompleteVar // TODO - fib_sample declared in test case
251253
BOOST_TEST(fib_sample == exp);
252254
}

0 commit comments

Comments
 (0)