Silence clang specific #pragma directives for other compilers ?
Closed this issue · 2 comments
AdelKS commented
Hello !
The latest version of cista introduced some compile time warnings on GCC
cista/containers/mutable_fws_multimap.h:55: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
55 | #pragma clang diagnostic ignored "-Wclass-conversion"
Do you think there's a way to not make it complain?
felixguendling commented
Does it help to wrap it with #ifdef __clang__
like here?
cista/include/cista/reflection/arity.h
Lines 30 to 45 in 48c47ac
AdelKS commented
I haven't used clang yet to see if it complains but I think that should work for gcc. You can't reproduce the warnings locally? I get them with with -Wall -Wextra
flags, I wonder how different the actual set of flags that get activated differ from the ones cista activates 🤔