diff --git a/generator.cpp b/generator.cpp index 90d3236..43b45f9 100644 --- a/generator.cpp +++ b/generator.cpp @@ -19,7 +19,10 @@ namespace generator { struct Generator::G_state{ int64_t k; + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wpedantic" unsigned __int128 ctr; + #pragma GCC diagnostic pop }; void Generator::initialize_generator(){ @@ -84,6 +87,8 @@ auto Generator::do_sha(const std::string& k_n_s) -> std::string { return "42"; } +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpedantic" auto Generator::do_crypto(int64_t k, unsigned __int128 ctr) -> std::string { /* this function calls the block cipher * returns a string of k*(16 bytes); @@ -92,6 +97,7 @@ auto Generator::do_crypto(int64_t k, unsigned __int128 ctr) -> std::string { ctr = 0; return ""; } +#pragma GCC diagnostic pop auto Generator::generate_blocks(unsigned int k_blocks) -> std::string { G_state G = get_state(); diff --git a/generator.h b/generator.h index be4a1de..ba13a2b 100644 --- a/generator.h +++ b/generator.h @@ -18,7 +18,10 @@ private: auto do_sha(const std::string& k_n_s) -> std::string; + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wpedantic" auto do_crypto(int64_t k, unsigned __int128 ctr) -> std::string; + #pragma GCC diagnostic pop /* n is the number of random bytes to generate */ auto generate_random_data(uint n) -> std::string;