Skip to content

Commit

Permalink
fix clang warnings
Browse files Browse the repository at this point in the history
fix clang warning warning: no previous extern declaration for non-static variable 'X' [-Wmissing-variable-declarations]
  • Loading branch information
timdave13 committed Feb 3, 2017
1 parent 0a6857e commit 07d4872
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions UnitTest++/TestMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
} \
namespace Suite ## Name

#define UNITTEST_IMPL_TEST(Name, List) \
#define UNITTEST_IMPL_TEST(Name, List) \
class Test ## Name : public UnitTest::Test \
{ \
public: \
Test ## Name() : Test(#Name, UnitTestSuite::GetSuiteName(), __FILE__, __LINE__) {} \
private: \
virtual void RunImpl() const; \
} test ## Name ## Instance; \
} static test ## Name ## Instance; \
\
UnitTest::ListAdder adder ## Name (List, &test ## Name ## Instance); \
static UnitTest::ListAdder adder ## Name (List, &test ## Name ## Instance); \
\
void Test ## Name::RunImpl() const

Expand Down Expand Up @@ -62,9 +62,9 @@
Test ## Fixture ## Name() : Test(#Name, UnitTestSuite::GetSuiteName(), __FILE__, __LINE__) {} \
private: \
virtual void RunImpl() const; \
} static test ## Fixture ## Name ## Instance; \
} static test ## Fixture ## Name ## Instance; \
\
static UnitTest::ListAdder adder ## Fixture ## Name (List, &test ## Fixture ## Name ## Instance); \
static UnitTest::ListAdder adder ## Fixture ## Name (List, &test ## Fixture ## Name ## Instance); \
\
void Test ## Fixture ## Name::RunImpl() const \
{ \
Expand Down

0 comments on commit 07d4872

Please sign in to comment.