jeremy-rifkin / libassert

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

-Wunknown-warning-option warning with Clang 14 #60

Closed Morwenn closed 1 year ago

Morwenn commented 1 year ago

I get the following -Wunknown-warning-option warnings when building the library with Clang 14 on WSL2 without any specific CMake option enabled, building libassert v1.2:

warning: unknown warning option '-Wuseless-cast' [-Wunknown-warning-option]
warning: unknown warning option '-Wnonnull-compare' [-Wunknown-warning-option]

Wherever they are added, you probably want to restrict them to GCC builds.

jeremy-rifkin commented 1 year ago

Thank you! Should be a quick fix.