suppress false-positive gcc warnings

This commit is contained in:
dzaima 2024-05-23 23:53:48 +03:00
parent 5862c28c08
commit 05690c001a
2 changed files with 3 additions and 2 deletions

View File

@ -124,7 +124,7 @@ typedef struct { B n, p; } B2;
static NOINLINE B toIntCell(B x, ux csz0, ur co) { static NOINLINE B toIntCell(B x, ux csz0, ur co) {
assert(TI(x,elType)!=el_B); assert(TI(x,elType)!=el_B);
usz ria = shProd(SH(x), 0, co); usz ria = shProd(SH(x), 0, co);
ShArr* rsh; ShArr* rsh ONLY_GCC(=0);
if (co>1) { rsh=m_shArr(co); shcpy(rsh->a,SH(x),co); } if (co>1) { rsh=m_shArr(co); shcpy(rsh->a,SH(x),co); }
B r0 = widenBitArr(x, co); B r0 = widenBitArr(x, co);
usz csz = shProd(SH(r0),co,RNK(r0)) << elwBitLog(TI(r0,elType)); usz csz = shProd(SH(r0),co,RNK(r0)) << elwBitLog(TI(r0,elType));

View File

@ -25,7 +25,8 @@
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable" #pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#include SINGELI_FILE1(../../build/obj2/SINGELI_DIR/SINGELI_FILE.c) #include SINGELI_FILE1(../../build/obj2/SINGELI_DIR/SINGELI_FILE.c)
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#undef SINGELI_FILE #undef SINGELI_FILE