jeremy-rifkin / libassert

The most over-engineered C++ assertion library
MIT License
539 stars 36 forks source link

-Wgnu-zero-variadic-macro-arguments warning with Clang 14 #59

Closed Morwenn closed 7 months ago

Morwenn commented 1 year ago

No MRE so far but I got the following -Wgnu-zero-variadic-macro-arguments warning with Clang 14 on WSL:

/mnt/d/Morwenn/Projets/cpp-sort/build-ubuntu-clang/libassert-src/include/assert.hpp:146:83: warning: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Wgnu-zero-variadic-macro-arguments]
        libassert::detail::primitive_assert_impl(c, false, #c, LIBASSERT_PFUNC, {}, ##__VA_ARGS__)

I am using libassert v1.2.

jeremy-rifkin commented 7 months ago

I'm going to close now that v2 is released and a ton has changed internally. If the issue comes up again please let me know!