From: Ivan Maidanski Date: Tue, 18 Oct 2016 08:50:14 +0000 (+0300) Subject: Eliminate 'constructor with 1 argument is not explicit' warnings in test_cpp X-Git-Tag: v8.0.0~1102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78113014d0ea140aed8ec63b9bc1902edd59b9bc;p=platform%2Fupstream%2Flibgc.git Eliminate 'constructor with 1 argument is not explicit' warnings in test_cpp (fix commit 569fd66) * tests/test_cpp.cc (GC_ATTR_EXPLICIT): Define macro in the same way as in include/gc_allocator.h. --- diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc index 642bdfd..cec6989 100644 --- a/tests/test_cpp.cc +++ b/tests/test_cpp.cc @@ -77,7 +77,11 @@ extern "C" { #endif #ifndef GC_ATTR_EXPLICIT -# define GC_ATTR_EXPLICIT /* empty */ +# if (__cplusplus >= 201103L) || defined(CPPCHECK) +# define GC_ATTR_EXPLICIT explicit +# else +# define GC_ATTR_EXPLICIT /* empty */ +# endif #endif class A {public: