Skip to content

Commit

Permalink
change [&] to [] and suppress tremendous warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeDisciplina authored Sep 28, 2022
1 parent d9b0089 commit 6fe84ab
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
10 changes: 5 additions & 5 deletions constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int N>
const array<int, N+1> HWorder_off = [&]
const array<int, N+1> HWorder_off = []
{
array<int, N+1> aHWorder_off;
aHWorder_off[0] = 0;
Expand All @@ -339,7 +339,7 @@ const array<int, N+1> HWorder_off = [&]
}();

template<int N>
const array<int, 1<<N> HWorder = [&]
const array<int, 1<<N> HWorder = []
{
array<int, 1<<N> aHWorder;
int offset[N + 1] = { 0 };
Expand Down Expand Up @@ -1089,7 +1089,7 @@ template<int N>
const Perm_t<N> PE;

template<int N>
const array<Peigen::function_t<N>, (1<<N)> XE = [&]
const array<Peigen::function_t<N>, (1<<N)> XE = []
{
Peigen::function_t<N> I = Peigen::function_t<N>::INPUT_DEFAULT();
array<Peigen::function_t<N>, (1<<N)> aXE;
Expand All @@ -1106,7 +1106,7 @@ const array<Peigen::function_t<N>, (1<<N)> XE = [&]
}();

template<int N>
const bit_slice_t<N> masks = [&]
const bit_slice_t<N> masks = []
{
bit_slice_t<N> amask;
bit_slice_l_t<N> mask_init;
Expand Down Expand Up @@ -1136,7 +1136,7 @@ struct LExinfoGx_t
};

template<int N>
const map<array<uint8_t, LUT_UNIT_N>, LExinfoGx_t<N> > G_Rs = [&]
const map<array<uint8_t, LUT_UNIT_N>, LExinfoGx_t<N> > G_Rs = []
{
map<array<uint8_t, LUT_UNIT_N>, LExinfoGx_t<N> > aG_Rs;
if (N == 4)
Expand Down
10 changes: 10 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,21 @@
#include <cstring>
#include <stdio.h>
#include <time.h>

#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;
Expand Down
2 changes: 1 addition & 1 deletion subspaces.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ using namespace std;
according to the method used in sagemath reduced_echelon_matrix_iterator() method
*/
template<int N>
const vector<vector<vector<uint8_t> > > SubSpaces = [&]
const vector<vector<vector<uint8_t> > > SubSpaces = []
{
if (N <= 8)
{
Expand Down

0 comments on commit 6fe84ab

Please sign in to comment.