Linux: Make it compile

master
Zi Ree 2024-06-11 02:55:32 +02:00
parent 492dcabe96
commit 5d5b1650d0
1 changed files with 13 additions and 0 deletions

View File

@ -99,6 +99,13 @@ namespace LL
#pragma clang diagnostic ignored "-Wunused-function"
#endif
// <FS:Zi> make gcc ignore this as well
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic push
#endif
// </FS:Zi>
template<>
void copyScalar<F32, F32>(F32* src, F32& dst)
{
@ -213,6 +220,12 @@ namespace LL
dst.set_value(src);
}
// <FS:Zi> make gcc ignore this as well
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
// </FS:Zi>
#if defined(__clang__)
#pragma clang diagnostic pop
#endif