Skip to content

Commit

Permalink
Fix warning with GCC14
Browse files Browse the repository at this point in the history
  • Loading branch information
daljit46 committed Aug 8, 2024
1 parent e1f0c99 commit ac48d3a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/file/npy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@ DataType descr2datatype(const std::string &s) {
if (bytes > 1) {
data_type = data_type() | (is_little_endian ? DataType::LittleEndian : DataType::BigEndian);
if (issue_endianness_warning) {
WARN(std::string("NumPy file does not indicate data endianness;") + //
" assuming " + (MRTRIX_IS_BIG_ENDIAN ? "big" : "little") + "-endian" + //
" (same as system)");
using namespace std::string_literals;
const std::string message = "NumPy file does not indicate data endianness; assuming "s +
(MRTRIX_IS_BIG_ENDIAN ? "big"s : "little"s) + "-endian"s + " (same as system)"s;
WARN(message);
}
}
return data_type;
Expand Down

0 comments on commit ac48d3a

Please sign in to comment.