Skip to content

Commit 543e8eb

Browse files
committed
Slienced clang warning about C Linkage in UnitTestpp
1 parent c8714a9 commit 543e8eb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Release/tests/common/UnitTestpp/src/TestMacros.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,15 @@
7272

7373
namespace UnitTest
7474
{
75+
#if defined(__clang__)
76+
#pragma clang diagnostic push
77+
#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
78+
#endif
7579
extern "C"
7680
_DLL_EXPORT TestList& GetTestList();
81+
#if defined(__clang__)
82+
#pragma clang diagnostic pop
83+
#endif
7784
}
7885
#endif
7986

0 commit comments

Comments
 (0)