diff --git a/constants.hpp b/constants.hpp index 02ab0e2..f9f1d07 100644 --- a/constants.hpp +++ b/constants.hpp @@ -327,7 +327,7 @@ const __m128i S4_coors_deg_mask2 = _mm_set_epi64x(0x0ULL, 0x1668166816681668ULL) const __m128i S4_coors_deg_mask1 = _mm_set_epi64x(0x0ULL, 0x0116011601160116ULL); // 0000 0001 0001 0110 template -const array HWorder_off = [&] +const array HWorder_off = [] { array aHWorder_off; aHWorder_off[0] = 0; @@ -339,7 +339,7 @@ const array HWorder_off = [&] }(); template -const array HWorder = [&] +const array HWorder = [] { array aHWorder; int offset[N + 1] = { 0 }; @@ -1089,7 +1089,7 @@ template const Perm_t PE; template -const array, (1< XE = [&] +const array, (1< XE = [] { Peigen::function_t I = Peigen::function_t::INPUT_DEFAULT(); array, (1< aXE; @@ -1106,7 +1106,7 @@ const array, (1< XE = [&] }(); template -const bit_slice_t masks = [&] +const bit_slice_t masks = [] { bit_slice_t amask; bit_slice_l_t mask_init; @@ -1136,7 +1136,7 @@ struct LExinfoGx_t }; template -const map, LExinfoGx_t > G_Rs = [&] +const map, LExinfoGx_t > G_Rs = [] { map, LExinfoGx_t > aG_Rs; if (N == 4) diff --git a/main.cpp b/main.cpp index 53fd5ef..d949af3 100644 --- a/main.cpp +++ b/main.cpp @@ -45,11 +45,21 @@ #include #include #include + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wsign-compare" +#pragma GCC diagnostic ignored "-Wunused-variable" +#pragma GCC diagnostic ignored "-Woverflow" +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" + #include "faster.hpp" #include "func.hpp" #include "evaluator.hpp" #include "lighter.hpp" +#pragma GCC diagnostic pop + using namespace std; using namespace Peigen; using namespace Peigen::depth; diff --git a/subspaces.hpp b/subspaces.hpp index c78cf46..b451dc7 100644 --- a/subspaces.hpp +++ b/subspaces.hpp @@ -51,7 +51,7 @@ using namespace std; according to the method used in sagemath reduced_echelon_matrix_iterator() method */ template -const vector > > SubSpaces = [&] +const vector > > SubSpaces = [] { if (N <= 8) {