@@ -57,13 +57,13 @@ class TestUnusedFunctions : public TestFixture {
5757 TEST_CASE (ignore_declaration); // ignore declaration
5858 }
5959
60- void check (const char code[]) {
60+ void check (const char code[], Settings::PlatformType platform = Settings::Unspecified ) {
6161 // Clear the error buffer..
6262 errout.str (" " );
6363
6464 Settings settings;
6565 settings.addEnabled (" style" );
66-
66+ settings. platform (platform);
6767 // Tokenize..
6868 Tokenizer tokenizer (&settings, this );
6969 std::istringstream istr (code);
@@ -228,10 +228,10 @@ class TestUnusedFunctions : public TestFixture {
228228 check (" int main() { }" );
229229 ASSERT_EQUALS (" " , errout.str ());
230230
231- check (" int _tmain() { }" );
231+ check (" int _tmain() { }" , Settings::Win32A );
232232 ASSERT_EQUALS (" " , errout.str ());
233233
234- check (" int WinMain() { }" );
234+ check (" int WinMain() { }" , Settings::Win32A );
235235 ASSERT_EQUALS (" " , errout.str ());
236236 }
237237
@@ -334,8 +334,8 @@ class TestUnusedFunctions : public TestFixture {
334334
335335 void multipleFiles () {
336336 Settings settings;
337- Tokenizer tokenizer (&settings, this );
338- CheckUnusedFunctions c (&tokenizer, &settings, nullptr );
337+ Tokenizer tokenizer (&settings, this );
338+ CheckUnusedFunctions c (&tokenizer, &settings, nullptr );
339339
340340 // Clear the error buffer..
341341 errout.str (" " );
0 commit comments