summaryrefslogtreecommitdiff
path: root/src/cppunit/TestFactoryRegistry.cpp
diff options
context:
space:
mode:
authorGARCIN David <david.garcin@openwide.fr>2016-10-15 17:01:25 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-10-15 17:31:48 +0200
commit29ae31614fb70e192f63fdab1c65105493319edc (patch)
treec0d3c966269d34d2ae985b8a11da74a1db01c2b7 /src/cppunit/TestFactoryRegistry.cpp
parent42bd37a4b8d8feab2d30761648b51eaf20623abb (diff)
downloadcppunit-29ae31614fb70e192f63fdab1c65105493319edc.tar.gz
HelperMacros: fix deprecated NULL macro usage
Using gcc (currently using gcc 5.2) flag -Wzero-as-null-pointer-constant triggers warnings: [...]include/cppunit/extensions/HelperMacros.h:171:31: error: zero as null pointer constant [-Werror=zero-as-null-pointer-constant] CppUnitExDeleter() : suite (0) {} \ ^ [...]include/cppunit/extensions/HelperMacros.h:174:45: error: zero as null pointer constant [-Werror=zero-as-null-pointer-constant] CPPUNIT_NS::TestSuite *tmp = suite; suite = NULL; return tmp; \ ^ Using nullptr is the c++11 way to initialize pointers with null value [1]. [1] http://en.cppreference.com/w/cpp/language/nullptr
Diffstat (limited to 'src/cppunit/TestFactoryRegistry.cpp')
0 files changed, 0 insertions, 0 deletions