mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-11 13:30:47 -04:00
chore: try to silence some gcc warnings
This commit is contained in:
parent
242273ad05
commit
291f541192
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include <fmt/format.h>
|
#include <fmt/format.h>
|
||||||
|
|
||||||
|
#include <folly/lang/Assume.h>
|
||||||
|
|
||||||
#include "dwarfs/pcm_sample_transformer.h"
|
#include "dwarfs/pcm_sample_transformer.h"
|
||||||
|
|
||||||
namespace dwarfs {
|
namespace dwarfs {
|
||||||
@ -314,6 +316,8 @@ make_pcm_sample_transformer(pcm_sample_padding pad, int bytes, int bits) {
|
|||||||
return make_pcm_sample_transformer<UnpackedType, End, Sig,
|
return make_pcm_sample_transformer<UnpackedType, End, Sig,
|
||||||
pcm_sample_padding::Msb>(bytes, bits);
|
pcm_sample_padding::Msb>(bytes, bits);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
folly::assume_unreachable();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename UnpackedType, pcm_sample_endianness End>
|
template <typename UnpackedType, pcm_sample_endianness End>
|
||||||
@ -330,6 +334,8 @@ make_pcm_sample_transformer(pcm_sample_signedness sig, pcm_sample_padding pad,
|
|||||||
pcm_sample_signedness::Unsigned>(
|
pcm_sample_signedness::Unsigned>(
|
||||||
pad, bytes, bits);
|
pad, bytes, bits);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
folly::assume_unreachable();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename UnpackedType>
|
template <typename UnpackedType>
|
||||||
@ -349,6 +355,8 @@ make_pcm_sample_transformer(pcm_sample_endianness end,
|
|||||||
pcm_sample_endianness::Little>(
|
pcm_sample_endianness::Little>(
|
||||||
sig, pad, bytes, bits);
|
sig, pad, bytes, bits);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
folly::assume_unreachable();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user