chore: try to silence some gcc warnings

This commit is contained in:
Marcus Holland-Moritz 2024-01-20 10:32:38 +01:00
parent 242273ad05
commit 291f541192

View File

@ -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