Skip to content

Commit 975b60e

Browse files
committed
Ignore maybe-uninitialized in factorials
1 parent 20164eb commit 975b60e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cp-algo/math/factorials.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,13 @@ namespace cp_algo::math {
5858
static std::array<u32x8, subblock> prods[accum];
5959
for(int z = 0; z < accum; z++) {
6060
for(int j = 0; j < simd_size; j++) {
61+
#pragma GCC diagnostic push
62+
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
6163
cur[z][j] = uint32_t(b + z * block + j * subblock);
6264
cur[z][j] = proj(cur[z][j]);
6365
prods[z][0][j] = cur[z][j] + !cur[z][j];
6466
prods[z][0][j] = uint32_t(uint64_t(prods[z][0][j]) * bi2x32.getr() % mod);
67+
#pragma GCC diagnostic pop
6568
}
6669
}
6770
for(int i = 1; i < block / simd_size; i++) {

0 commit comments

Comments
 (0)