IAP GITLAB

Skip to content
Snippets Groups Projects
Commit b1af584f authored by Ralf M Ulrich's avatar Ralf M Ulrich
Browse files

fixed warnings

parent ddf926d0
No related branches found
No related tags found
1 merge request!278Magnetic Tracking
......@@ -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;
}
};
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment