Fixed warnings on Windows (#407)

Now builds clean on MSVC: cl version 19.51.36260 for x64, from Visual
Studio 2026 Build Tools 18.10.3.

Major items:

- [[maybe_unused]] instead of gcc/clang specific pragmas
- Removed names variables that weren't used
- Cast + explicit uing64
This commit is contained in:
Erik Fröjdh
2026-10-06 14:49:24 +02:00
committed by GitHub
parent 7e1b8a765d
commit cdd8586f64
15 changed files with 47 additions and 91 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ JungfrauDataHeader JungfrauDataFile::read_header() {
throw std::runtime_error(LOCATION + "Could not read header from file" +
m_fp.error_msg());
}
m_fp.seek(-header_size, SEEK_CUR);
m_fp.seek(-static_cast<ssize_t>(header_size), SEEK_CUR);
return header;
}