clang doesn't have -Wuseless-cast and defines __GNUC__ so now it was producing warnings about the bad pragma in the same places GCC previously warned about the casts

This commit is contained in:
Mia McMahill 2025-10-27 01:55:18 -05:00
parent b957a3d930
commit 72ea79e80d

View file

@ -1,10 +1,10 @@
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuseless-cast"
#endif
#include "noisy/span.hpp"
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif