diff --git a/Framework/Analytics/testClassTimer.cc b/Framework/Analytics/testClassTimer.cc index 95f82b4b2caa93394634e5c39ee542dacda94f2f..6185036b5ab36b1a2a203759fa18a06120020bc5 100644 --- a/Framework/Analytics/testClassTimer.cc +++ b/Framework/Analytics/testClassTimer.cc @@ -74,7 +74,7 @@ public: class fooT1 { public: template <typename T1, typename T2> - int inside_t(T1 a, T2 b, T2 c) { + int inside_t(T1, T2, T2) { return 123; } }; diff --git a/ThirdParty/cnpy/cnpy.cpp b/ThirdParty/cnpy/cnpy.cpp index b4c26fccf411b18ae5b11d1c607b436dfdc75225..d2eee53d08820803eb14cc56490d699ede2f68ff 100644 --- a/ThirdParty/cnpy/cnpy.cpp +++ b/ThirdParty/cnpy/cnpy.cpp @@ -61,8 +61,8 @@ template<> std::vector<char>& cnpy::operator+=(std::vector<char>& lhs, const cha void cnpy::parse_npy_header(unsigned char* buffer,size_t& word_size, std::vector<size_t>& shape, bool& fortran_order) { //std::string magic_string(buffer,6); - uint8_t major_version = *reinterpret_cast<uint8_t*>(buffer+6); - uint8_t minor_version = *reinterpret_cast<uint8_t*>(buffer+7); + [[maybe_unused]] uint8_t major_version = *reinterpret_cast<uint8_t*>(buffer+6); + [[maybe_unused]] uint8_t minor_version = *reinterpret_cast<uint8_t*>(buffer+7); uint16_t header_len = *reinterpret_cast<uint16_t*>(buffer+8); std::string header(reinterpret_cast<char*>(buffer+9),header_len); @@ -196,7 +196,7 @@ cnpy::NpyArray load_the_npz_array(FILE* fp, uint32_t compr_bytes, uint32_t uncom if(nread != compr_bytes) throw std::runtime_error("load_the_npy_file: failed fread"); - int err; + [[maybe_unused]] int err; z_stream d_stream; d_stream.zalloc = Z_NULL;