include/ceph_assert: qualify __assert_warn call in assert_warn macro

A macro never knows where it will be expanded.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
This commit is contained in:
Adam C. Emerson 2020-04-02 19:29:45 -04:00
parent 297223e22f
commit 83ee7598c6

View File

@ -70,7 +70,7 @@ extern void __ceph_assert_warn(const char *assertion, const char *file, int line
#define assert_warn(expr) \
((expr) \
? _CEPH_ASSERT_VOID_CAST (0) \
: __ceph_assert_warn (__STRING(expr), __FILE__, __LINE__, __CEPH_ASSERT_FUNCTION))
: ::ceph::__ceph_assert_warn (__STRING(expr), __FILE__, __LINE__, __CEPH_ASSERT_FUNCTION))
}